rtspsrc: reject segment seeks

https://bugzilla.gnome.org/show_bug.cgi?id=784681
This commit is contained in:
Mathieu Duponchelle 2017-05-25 03:44:39 +02:00 committed by Mathieu Duponchelle
parent d7038b9bb0
commit 893d39cef7

View file

@ -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