mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
mpegtsbase: First try if upstream handles seeking in TIME format before seeking in the demuxer
This commit is contained in:
parent
a27b7b6712
commit
6edff48378
1 changed files with 7 additions and 0 deletions
|
@ -1416,6 +1416,13 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad,
|
||||||
if (format != GST_FORMAT_TIME)
|
if (format != GST_FORMAT_TIME)
|
||||||
return FALSE;
|
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
|
GST_DEBUG ("seek event, rate: %f start: %" GST_TIME_FORMAT
|
||||||
" stop: %" GST_TIME_FORMAT, rate, GST_TIME_ARGS (start),
|
" stop: %" GST_TIME_FORMAT, rate, GST_TIME_ARGS (start),
|
||||||
GST_TIME_ARGS (stop));
|
GST_TIME_ARGS (stop));
|
||||||
|
|
Loading…
Reference in a new issue