summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatricia Muscalu <patricia@dovakhiin.com>2017-11-25 20:32:02 +0100
committerEdward Hervey <bilboed@bilboed.com>2017-11-27 07:58:42 +0100
commitcaa3f1caac3d3ce43a86e27c06d3c4c7da15473c (patch)
tree740b22ef31ba2ff78d3d39b98f3a60e9e619d605
parent0015791f8fe72e648cef264f49f6e3c9c224caf7 (diff)
rtsp-stream: Do not reset 'blocking' if stream is already blocked
https://bugzilla.gnome.org/show_bug.cgi?id=790674
-rw-r--r--gst/rtsp-server/rtsp-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c
index fee99ac..94d6197 100644
--- a/gst/rtsp-server/rtsp-stream.c
+++ b/gst/rtsp-server/rtsp-stream.c
@@ -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,