diff --git a/ChangeLog b/ChangeLog index e78f6e4ccf..251d4ce27a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-10-13 Thomas Vander Stichele + + * 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 * docs/gst/gstreamer-sections.txt: diff --git a/gst/base/gstbasesink.c b/gst/base/gstbasesink.c index 0209612a57..d73c5c7f57 100644 --- a/gst/base/gstbasesink.c +++ b/gst/base/gstbasesink.c @@ -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; diff --git a/gst/base/gstbasesrc.c b/gst/base/gstbasesrc.c index 72b690229b..73bbe68b33 100644 --- a/gst/base/gstbasesrc.c +++ b/gst/base/gstbasesrc.c @@ -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) { diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 0209612a57..d73c5c7f57 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -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; diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 72b690229b..73bbe68b33 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -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) { diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 53b9d4ce83..bd150b0eb0 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -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: