From 893d39cef730cb3c3a685c7e15cf6592907b6e06 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 25 May 2017 03:44:39 +0200 Subject: [PATCH] rtspsrc: reject segment seeks https://bugzilla.gnome.org/show_bug.cgi?id=784681 --- gst/rtsp/gstrtspsrc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index ce17a0e4d3..f5fd695584 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2428,6 +2428,9 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event) stop_type = GST_SEEK_TYPE_SET; } + if (flags & GST_SEEK_FLAG_SEGMENT) + goto invalid_segment_flag; + /* get flush flag */ flush = flags & GST_SEEK_FLAG_FLUSH; skip = flags & GST_SEEK_FLAG_SKIP; @@ -2557,6 +2560,11 @@ not_seekable: GST_DEBUG_OBJECT (src, "stream is not seekable"); return FALSE; } +invalid_segment_flag: + { + GST_WARNING_OBJECT (src, "Segment seeks not supported"); + return FALSE; + } } static gboolean