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.
This commit is contained in:
Patricia Muscalu 2018-11-17 19:19:54 +01:00 committed by Sebastian Dröge
parent 146b3da174
commit 4370f3a901

View 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);
}