From ce98e7b87b02c044e297f6071740a15d1a6d3f25 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 7 Jul 2017 17:32:33 +0200 Subject: adaptivedemux: reject segment seeks While #782140 can stay open for actually handling these, the fact is currently adaptivedemux does not handle segment seeks, and as such should not accept them. https://bugzilla.gnome.org/show_bug.cgi?id=784655 --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gst-libs/gst/adaptivedemux') diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 94c67fb55..540cd52ff 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -1567,6 +1567,14 @@ gst_adaptive_demux_handle_seek_event (GstAdaptiveDemux * demux, GstPad * pad, return FALSE; } + if (flags & GST_SEEK_FLAG_SEGMENT) { + GST_FIXME_OBJECT (demux, "Handle segment seeks"); + GST_MANIFEST_UNLOCK (demux); + GST_API_UNLOCK (demux); + gst_event_unref (event); + return FALSE; + } + seqnum = gst_event_get_seqnum (event); if (gst_adaptive_demux_is_live (demux)) { -- cgit v1.2.3