From 146b3da17482d57d79359c7bd554fd9ca8377a59 Mon Sep 17 00:00:00 2001 From: Patricia Muscalu Date: Sat, 17 Nov 2018 18:18:27 +0100 Subject: [PATCH] rtsp-media: Don't block streams before seeking Before the seek operation is performed on media, it's required that its pipeline is prepared <=> the pipeline is in the PAUSED state. At this stage, all transport parts (transport sinks) have been successfully added to the pipeline and there is no need for blocking the streams. --- gst/rtsp-server/rtsp-media.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 15ab6a7..50de511 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -2628,7 +2628,8 @@ gst_rtsp_media_get_status (GstRTSPMedia * media) * @flags: The minimal set of #GstSeekFlags to use * * Seek the pipeline of @media to @range. @media must be prepared with - * gst_rtsp_media_prepare(). + * gst_rtsp_media_prepare(). In order to perform the seek operation, + * the pipeline must contain all needed transport parts (transport sinks). * * Returns: %TRUE on success. */ @@ -2737,8 +2738,6 @@ gst_rtsp_media_seek_full (GstRTSPMedia * media, GstRTSPTimeRange * range, res = TRUE; } else { gst_rtsp_media_set_status (media, GST_RTSP_MEDIA_STATUS_PREPARING); - if (priv->blocked) - media_streams_set_blocked (media, TRUE); /* FIXME, we only do forwards playback, no trick modes yet */ res = gst_element_seek (priv->pipeline, 1.0, GST_FORMAT_TIME, -- 2.7.4