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:
Edward Hervey 2014-06-09 10:04:38 +02:00
parent 40ae581ef2
commit f7fc8d74c9

View file

@ -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 {