summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2011-08-23 09:52:20 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-08-23 09:52:20 +0200
commit6edff4837894b68aa53ddea1075d08073f6b8f35 (patch)
tree66ad08cddb23439eb001d57ffeac2afcfb979dad
parenta27b7b6712df333e62026e8410283526afa6208a (diff)
mpegtsbase: First try if upstream handles seeking in TIME format before seeking in the demuxer
-rw-r--r--gst/mpegtsdemux/mpegtsbase.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c
index 6ab118425..9b0f702bc 100644
--- a/gst/mpegtsdemux/mpegtsbase.c
+++ b/gst/mpegtsdemux/mpegtsbase.c
@@ -1416,6 +1416,13 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad,
if (format != GST_FORMAT_TIME)
return FALSE;
+ /* First try if upstream supports seeking in TIME format */
+ if (gst_pad_push_event (pad, gst_event_ref (event))) {
+ GST_DEBUG ("upstream handled SEEK event");
+ gst_event_unref (event);
+ return TRUE;
+ }
+
GST_DEBUG ("seek event, rate: %f start: %" GST_TIME_FORMAT
" stop: %" GST_TIME_FORMAT, rate, GST_TIME_ARGS (start),
GST_TIME_ARGS (stop));