Disallow seek in live media

This commit is contained in:
Victor Gottardi 2011-09-16 11:31:17 -04:00 committed by Wim Taymans
parent 20b6be3852
commit 526bbb5a8f

View file

@ -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 (GST_IS_RTSP_MEDIA (media), FALSE);
g_return_val_if_fail (range != NULL, 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) if (range->unit != GST_RTSP_RANGE_NPT)
goto not_supported; goto not_supported;