mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-01 20:30:41 +00:00
rtspsrc: reject segment seeks
https://bugzilla.gnome.org/show_bug.cgi?id=784681
This commit is contained in:
parent
d7038b9bb0
commit
893d39cef7
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue