From 4370f3a9012476b824dfaf8bd89f0fae0afa5212 Mon Sep 17 00:00:00 2001 From: Patricia Muscalu Date: Sat, 17 Nov 2018 19:19:54 +0100 Subject: [PATCH] rtsp-media: Update priv->blocked when linked streams are unblocked. Media is considered to be blocked when all streams that belong to that media are blocked. This patch solves the problem of inconsistent updates of priv->blocked that are not synchronized with the media state. --- gst/rtsp-server/rtsp-media.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 50de511..490c73d 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -2572,6 +2572,9 @@ media_unblock_linked (GstRTSPMedia * media) GstRTSPMediaPrivate *priv = media->priv; GST_DEBUG ("media %p unblocking linked streams", media); + /* media is not blocked any longer, as it contains active streams, + * streams that are complete */ + priv->blocked = FALSE; g_ptr_array_foreach (priv->streams, (GFunc) stream_unblock, media); } -- 2.7.4