summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-11-20 16:19:52 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-11-20 18:58:09 +0000
commitbb9c38a750ed204d9a50b09bcf72caabb57ac614 (patch)
tree8ddbeb65a3620aa8ebb0d826e9c1d8f4d926b5da
parent3c8f5c0d1cee169b4eff3b2f897b075d7771860a (diff)
basesink: add some debug
-rw-r--r--libs/gst/base/gstbasesink.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c
index f41176011..54245af27 100644
--- a/libs/gst/base/gstbasesink.c
+++ b/libs/gst/base/gstbasesink.c
@@ -4251,16 +4251,24 @@ gst_base_sink_get_position (GstBaseSink * basesink, GstFormat format,
last = start;
else
last = stop;
+
+ GST_DEBUG_OBJECT (basesink, "in PAUSED using last %" GST_TIME_FORMAT,
+ GST_TIME_ARGS (last));
} else {
/* in playing, use last stop time as upper bound */
if (start == -1 || segment->rate > 0.0)
last = stop;
else
last = start;
+
+ GST_DEBUG_OBJECT (basesink, "in PLAYING using last %" GST_TIME_FORMAT,
+ GST_TIME_ARGS (last));
}
} else {
/* convert last stop to stream time */
last = gst_segment_to_stream_time (segment, oformat, segment->position);
+
+ GST_DEBUG_OBJECT (basesink, "in using last %" G_GINT64_FORMAT, last);
}
if (in_paused) {