mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
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:
parent
c32c04303c
commit
d4ea9fbeba
6 changed files with 15 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue