mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
flvdemux: Attempt upstream seek first
If we have an upstream element that can handle the seek (such as rtmpsrc), try to do that first before attempting it ourself.
This commit is contained in:
parent
40ae581ef2
commit
f7fc8d74c9
1 changed files with 4 additions and 0 deletions
|
@ -3109,6 +3109,10 @@ gst_flv_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_SEEK:
|
||||
/* Try to push upstream first */
|
||||
ret = gst_pad_push_event (demux->sinkpad, event);
|
||||
if (ret)
|
||||
break;
|
||||
if (demux->random_access) {
|
||||
ret = gst_flv_demux_handle_seek_pull (demux, event, TRUE);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue