mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
isomp4: Try to seek upstream before processing seek push event
When it receives a seek in push mode, the qtdemux should first try to push the event upstream, and only if upstream fails fall back to its own seek logic.
This commit is contained in:
parent
998534a2a1
commit
c06cb7c145
1 changed files with 5 additions and 2 deletions
|
@ -1488,8 +1488,11 @@ gst_qtdemux_handle_src_event (GstPad * pad, GstObject * parent,
|
|||
}
|
||||
if (qtdemux->pullbased) {
|
||||
res = gst_qtdemux_do_seek (qtdemux, pad, event);
|
||||
} else if (qtdemux->state == QTDEMUX_STATE_MOVIE && qtdemux->n_streams &&
|
||||
!qtdemux->fragmented) {
|
||||
} else if (gst_pad_push_event (qtdemux->sinkpad, gst_event_ref (event))) {
|
||||
GST_DEBUG_OBJECT (qtdemux, "Upstream successfully seeked");
|
||||
res = TRUE;
|
||||
} else if (qtdemux->state == QTDEMUX_STATE_MOVIE && qtdemux->n_streams
|
||||
&& !qtdemux->fragmented) {
|
||||
res = gst_qtdemux_do_push_seek (qtdemux, pad, event);
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (qtdemux,
|
||||
|
|
Loading…
Reference in a new issue