gst/base/: fix up debugging

Original commit message from CVS:
2005-10-13  Thomas Vander Stichele  <thomas at apestaart dot org>

* gst/base/gstbasesink.c: (gst_base_sink_handle_object):
* gst/base/gstbasesrc.c: (gst_base_src_get_range):
fix up debugging
* tools/gst-launch.c: (event_loop):
print out clock nicely
This commit is contained in:
Thomas Vander Stichele 2005-10-13 15:22:26 +00:00
parent c32c04303c
commit d4ea9fbeba
6 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2005-10-13 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/base/gstbasesink.c: (gst_base_sink_handle_object):
* gst/base/gstbasesrc.c: (gst_base_src_get_range):
fix up debugging
* tools/gst-launch.c: (event_loop):
print out clock nicely
2005-10-13 Tim-Philipp Müller <tim at centricular dot net>
* docs/gst/gstreamer-sections.txt:

View file

@ -485,6 +485,8 @@ gst_base_sink_handle_object (GstBaseSink * basesink, GstPad * pad,
/* any other format with 0 also gives time 0, the other values are
* invalid as time though. */
if (format != GST_FORMAT_TIME && segment_start == 0) {
GST_DEBUG_OBJECT (basesink,
"non-time newsegment with start 0, coaxing into FORMAT_TIME");
format = GST_FORMAT_TIME;
segment_stop = -1;
segment_time = -1;

View file

@ -612,7 +612,7 @@ gst_base_src_get_range (GstPad * pad, guint64 offset, guint length,
GST_DEBUG_OBJECT (src,
"reading offset %" G_GUINT64_FORMAT ", length %u, size %"
G_GUINT64_FORMAT, offset, length, src->size);
G_GINT64_FORMAT, offset, length, src->size);
/* check size */
if (src->size != -1) {

View file

@ -485,6 +485,8 @@ gst_base_sink_handle_object (GstBaseSink * basesink, GstPad * pad,
/* any other format with 0 also gives time 0, the other values are
* invalid as time though. */
if (format != GST_FORMAT_TIME && segment_start == 0) {
GST_DEBUG_OBJECT (basesink,
"non-time newsegment with start 0, coaxing into FORMAT_TIME");
format = GST_FORMAT_TIME;
segment_stop = -1;
segment_time = -1;

View file

@ -612,7 +612,7 @@ gst_base_src_get_range (GstPad * pad, guint64 offset, guint length,
GST_DEBUG_OBJECT (src,
"reading offset %" G_GUINT64_FORMAT ", length %u, size %"
G_GUINT64_FORMAT, offset, length, src->size);
G_GINT64_FORMAT, offset, length, src->size);
/* check size */
if (src->size != -1) {

View file

@ -399,7 +399,7 @@ event_loop (GstElement * pipeline, gboolean blocking)
gst_message_parse_new_clock (message, &clock);
g_print ("new clock: %p\n", clock);
g_print ("New clock: %s\n", GST_OBJECT_NAME (clock));
break;
}
case GST_MESSAGE_EOS: