mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
matroska: also support push-mode from seek events sent to the element
Otherwise sending seek events would fail to actually seek. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/891>
This commit is contained in:
parent
c7356c70ee
commit
e73559f815
1 changed files with 6 additions and 1 deletions
|
@ -142,6 +142,8 @@ static gboolean gst_matroska_demux_sink_activate (GstPad * sinkpad,
|
|||
static gboolean gst_matroska_demux_sink_activate_mode (GstPad * sinkpad,
|
||||
GstObject * parent, GstPadMode mode, gboolean active);
|
||||
|
||||
static gboolean gst_matroska_demux_handle_seek_push (GstMatroskaDemux * demux,
|
||||
GstPad * pad, GstEvent * event);
|
||||
static gboolean gst_matroska_demux_handle_seek_event (GstMatroskaDemux * demux,
|
||||
GstPad * pad, GstEvent * event);
|
||||
static gboolean gst_matroska_demux_handle_src_event (GstPad * pad,
|
||||
|
@ -1987,7 +1989,10 @@ gst_matroska_demux_element_send_event (GstElement * element, GstEvent * event)
|
|||
demux->deferred_seek_pad = NULL;
|
||||
return TRUE;
|
||||
}
|
||||
res = gst_matroska_demux_handle_seek_event (demux, NULL, event);
|
||||
if (!demux->streaming)
|
||||
res = gst_matroska_demux_handle_seek_event (demux, NULL, event);
|
||||
else
|
||||
res = gst_matroska_demux_handle_seek_push (demux, NULL, event);
|
||||
} else {
|
||||
GST_WARNING_OBJECT (demux, "Unhandled event of type %s",
|
||||
GST_EVENT_TYPE_NAME (event));
|
||||
|
|
Loading…
Reference in a new issue