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.
This commit is contained in:
Wim Taymans 2005-10-12 14:12:37 +00:00
parent c64fcb487b
commit 427aa60014
5 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,10 @@
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:

View file

@ -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;
}

View file

@ -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;

View file

@ -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;
}

View file

@ -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;