basesink: add some debug

This commit is contained in:
Wim Taymans 2012-11-20 16:19:52 +01:00
parent 1471489104
commit ffd64becb1

View file

@ -4355,16 +4355,24 @@ gst_base_sink_get_position (GstBaseSink * basesink, GstFormat format,
last = start; last = start;
else else
last = stop; last = stop;
GST_DEBUG_OBJECT (basesink, "in PAUSED using last %" GST_TIME_FORMAT,
GST_TIME_ARGS (last));
} else { } else {
/* in playing, use last stop time as upper bound */ /* in playing, use last stop time as upper bound */
if (start == -1 || segment->rate > 0.0) if (start == -1 || segment->rate > 0.0)
last = stop; last = stop;
else else
last = start; last = start;
GST_DEBUG_OBJECT (basesink, "in PLAYING using last %" GST_TIME_FORMAT,
GST_TIME_ARGS (last));
} }
} else { } else {
/* convert last stop to stream time */ /* convert last stop to stream time */
last = gst_segment_to_stream_time (segment, oformat, segment->position); last = gst_segment_to_stream_time (segment, oformat, segment->position);
GST_DEBUG_OBJECT (basesink, "in using last %" G_GINT64_FORMAT, last);
} }
if (in_paused) { if (in_paused) {