rtsp-stream: Do not reset 'blocking' if stream is already blocked

https://bugzilla.gnome.org/show_bug.cgi?id=790674
This commit is contained in:
Patricia Muscalu 2017-11-25 20:32:02 +01:00 committed by Edward Hervey
parent 0015791f8f
commit caa3f1caac

View file

@ -4187,11 +4187,11 @@ set_blocked (GstRTSPStream * stream, gboolean blocked)
priv = stream->priv;
if (blocked) {
priv->blocking = FALSE;
for (i = 0; i < 2; i++) {
if (priv->blocked_id[i] != 0)
continue;
if (priv->send_src[i]) {
priv->blocking = FALSE;
priv->blocked_id[i] = gst_pad_add_probe (priv->send_src[i],
GST_PAD_PROBE_TYPE_BLOCK | GST_PAD_PROBE_TYPE_BUFFER |
GST_PAD_PROBE_TYPE_BUFFER_LIST, pad_blocking,