mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 09:12:19 +00:00
rtspsrc: reject segment seeks
https://bugzilla.gnome.org/show_bug.cgi?id=784681
This commit is contained in:
parent
d7038b9bb0
commit
893d39cef7
1 changed files with 8 additions and 0 deletions
|
@ -2428,6 +2428,9 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
|
||||||
stop_type = GST_SEEK_TYPE_SET;
|
stop_type = GST_SEEK_TYPE_SET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (flags & GST_SEEK_FLAG_SEGMENT)
|
||||||
|
goto invalid_segment_flag;
|
||||||
|
|
||||||
/* get flush flag */
|
/* get flush flag */
|
||||||
flush = flags & GST_SEEK_FLAG_FLUSH;
|
flush = flags & GST_SEEK_FLAG_FLUSH;
|
||||||
skip = flags & GST_SEEK_FLAG_SKIP;
|
skip = flags & GST_SEEK_FLAG_SKIP;
|
||||||
|
@ -2557,6 +2560,11 @@ not_seekable:
|
||||||
GST_DEBUG_OBJECT (src, "stream is not seekable");
|
GST_DEBUG_OBJECT (src, "stream is not seekable");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
invalid_segment_flag:
|
||||||
|
{
|
||||||
|
GST_WARNING_OBJECT (src, "Segment seeks not supported");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue