Commit 427aa600 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/: Some more debugging info.

Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_handle_buffer):
* gst/elements/gstfilesink.c: (gst_file_sink_event),
(gst_file_sink_render):
Some more debugging info.
parent c64fcb48
2005-10-12 Wim Taymans <wim@fluendo.com>
* gst/base/gstbasesink.c: (gst_base_sink_handle_buffer):
* gst/elements/gstfilesink.c: (gst_file_sink_event),
(gst_file_sink_render):
Some more debugging info.
2005-10-12 Wim Taymans <wim@fluendo.com>
* docs/design/part-states.txt:
......
......@@ -1140,7 +1140,7 @@ gst_base_sink_handle_buffer (GstBaseSink * basesink, GstBuffer * buf)
status = gst_base_sink_do_sync (basesink, buf);
switch (status) {
case GST_CLOCK_EARLY:
GST_DEBUG_OBJECT (basesink, "buffer too late!");
GST_DEBUG_OBJECT (basesink, "buffer too late!, rendering anyway");
/* fallthrough for now */
case GST_CLOCK_OK:
{
......@@ -1152,6 +1152,7 @@ gst_base_sink_handle_buffer (GstBaseSink * basesink, GstBuffer * buf)
break;
}
default:
GST_DEBUG_OBJECT (basesink, "clock returned %d, not rendering", status);
break;
}
......
......@@ -391,6 +391,9 @@ gst_file_sink_render (GstBaseSink * sink, GstBuffer * buffer)
if (cur_pos < filesink->data_written)
back_pending = filesink->data_written - cur_pos;
GST_DEBUG_OBJECT (filesink, "writing %u bytes at %" G_GUINT64_FORMAT,
size, cur_pos);
if (fwrite (GST_BUFFER_DATA (buffer), size, 1, filesink->file) != 1)
goto handle_error;
......
......@@ -1140,7 +1140,7 @@ gst_base_sink_handle_buffer (GstBaseSink * basesink, GstBuffer * buf)
status = gst_base_sink_do_sync (basesink, buf);
switch (status) {
case GST_CLOCK_EARLY:
GST_DEBUG_OBJECT (basesink, "buffer too late!");
GST_DEBUG_OBJECT (basesink, "buffer too late!, rendering anyway");
/* fallthrough for now */
case GST_CLOCK_OK:
{
......@@ -1152,6 +1152,7 @@ gst_base_sink_handle_buffer (GstBaseSink * basesink, GstBuffer * buf)
break;
}
default:
GST_DEBUG_OBJECT (basesink, "clock returned %d, not rendering", status);
break;
}
......
......@@ -391,6 +391,9 @@ gst_file_sink_render (GstBaseSink * sink, GstBuffer * buffer)
if (cur_pos < filesink->data_written)
back_pending = filesink->data_written - cur_pos;
GST_DEBUG_OBJECT (filesink, "writing %u bytes at %" G_GUINT64_FORMAT,
size, cur_pos);
if (fwrite (GST_BUFFER_DATA (buffer), size, 1, filesink->file) != 1)
goto handle_error;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment