mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
tee: Check for the removed pad flag also in the slow pushing path
If a pad is currently being released we don't want to forward the FLUSHING flow return but instead consider it as NOT_LINKED. FLUSHING would also cause upstream to be FLUSHING. This part was missed ina3c4a3201a
and resulted in a different (and wrong) workaround ina96002bb28
.
This commit is contained in:
parent
aa29864317
commit
7f7da6a0d0
1 changed files with 2 additions and 0 deletions
|
@ -945,6 +945,8 @@ restart:
|
|||
|
||||
GST_OBJECT_LOCK (tee);
|
||||
/* keep track of which pad we pushed and the result value */
|
||||
if (GST_TEE_PAD_CAST (pad)->removed)
|
||||
ret = GST_FLOW_NOT_LINKED;
|
||||
GST_TEE_PAD_CAST (pad)->pushed = TRUE;
|
||||
GST_TEE_PAD_CAST (pad)->result = ret;
|
||||
gst_object_unref (pad);
|
||||
|
|
Loading…
Reference in a new issue