summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2017-07-07 17:32:33 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2018-02-02 16:59:54 +0100
commitce98e7b87b02c044e297f6071740a15d1a6d3f25 (patch)
treeefb6e411f7b9ba5c66933dc275e8be08181cec62 /gst-libs
parent1894293d6378c69548d974d2965e9decc1527654 (diff)
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
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/adaptivedemux/gstadaptivedemux.c8
1 files changed, 8 insertions, 0 deletions
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)) {