mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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:
parent
0015791f8f
commit
caa3f1caac
1 changed files with 1 additions and 1 deletions
|
@ -4187,11 +4187,11 @@ set_blocked (GstRTSPStream * stream, gboolean blocked)
|
||||||
priv = stream->priv;
|
priv = stream->priv;
|
||||||
|
|
||||||
if (blocked) {
|
if (blocked) {
|
||||||
priv->blocking = FALSE;
|
|
||||||
for (i = 0; i < 2; i++) {
|
for (i = 0; i < 2; i++) {
|
||||||
if (priv->blocked_id[i] != 0)
|
if (priv->blocked_id[i] != 0)
|
||||||
continue;
|
continue;
|
||||||
if (priv->send_src[i]) {
|
if (priv->send_src[i]) {
|
||||||
|
priv->blocking = FALSE;
|
||||||
priv->blocked_id[i] = gst_pad_add_probe (priv->send_src[i],
|
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_BLOCK | GST_PAD_PROBE_TYPE_BUFFER |
|
||||||
GST_PAD_PROBE_TYPE_BUFFER_LIST, pad_blocking,
|
GST_PAD_PROBE_TYPE_BUFFER_LIST, pad_blocking,
|
||||||
|
|
Loading…
Reference in a new issue