Commit d4ea9fbe authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

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
parent c32c0430
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:
......
......@@ -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;
......
......@@ -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) {
......
......@@ -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;
......
......@@ -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) {
......
......@@ -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:
......
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