rtsp-media: Update priv->blocked when linked streams are unblocked.
authorPatricia Muscalu <patricia@axis.com>
Sat, 17 Nov 2018 18:19:54 +0000 (19:19 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 19 Nov 2018 11:35:26 +0000 (11:35 +0000)
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

index 50de511..490c73d 100644 (file)
@@ -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);
 }