mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
Disallow seek in live media
This commit is contained in:
parent
20b6be3852
commit
526bbb5a8f
1 changed files with 5 additions and 0 deletions
|
@ -720,6 +720,11 @@ gst_rtsp_media_seek (GstRTSPMedia * media, GstRTSPTimeRange * range)
|
|||
g_return_val_if_fail (GST_IS_RTSP_MEDIA (media), FALSE);
|
||||
g_return_val_if_fail (range != NULL, FALSE);
|
||||
|
||||
if (media->is_live) {
|
||||
GST_INFO ("no seek in live media");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (range->unit != GST_RTSP_RANGE_NPT)
|
||||
goto not_supported;
|
||||
|
||||
|
|
Loading…
Reference in a new issue