This is actually a real bug.
tee = GST_TEE (GST_OBJECT_PARENT (pad));
GST_OBJECT_LOCK (tee);
tee = GST_TEE (GST_OBJECT_PARENT (pad));
GST_OBJECT_LOCK (tee);
- tee->sink_mode = active && GST_ACTIVATE_PUSH;
+ tee->sink_mode = (active ? GST_ACTIVATE_PUSH : GST_ACTIVATE_NONE);
if (active && !tee->has_chain)
goto no_chain;
if (active && !tee->has_chain)
goto no_chain;
if (pad == tee->pull_pad)
tee->pull_pad = NULL;
}
if (pad == tee->pull_pad)
tee->pull_pad = NULL;
}
- tee->sink_mode = active && GST_ACTIVATE_PULL;
+ tee->sink_mode = (active ? GST_ACTIVATE_PULL : GST_ACTIVATE_NONE);
GST_OBJECT_UNLOCK (tee);
gst_object_unref (tee);
GST_OBJECT_UNLOCK (tee);
gst_object_unref (tee);