mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
tee: deactivate the pad after removing it
When releasing the request pad, first remove it from the element and then deactivate it. If we do it the other way around, a gst_pad_push on the element might return wrong-state before we had a chance to detect the removed pad in the chain function.
This commit is contained in:
parent
26a5a877ff
commit
a96002bb28
1 changed files with 5 additions and 2 deletions
|
@ -386,11 +386,14 @@ gst_tee_release_pad (GstElement * element, GstPad * pad)
|
|||
}
|
||||
GST_OBJECT_UNLOCK (tee);
|
||||
|
||||
gst_pad_set_active (pad, FALSE);
|
||||
|
||||
gst_object_ref (pad);
|
||||
gst_element_remove_pad (GST_ELEMENT_CAST (tee), pad);
|
||||
|
||||
gst_pad_set_active (pad, FALSE);
|
||||
GST_TEE_DYN_UNLOCK (tee);
|
||||
|
||||
gst_object_unref (pad);
|
||||
|
||||
if (changed) {
|
||||
gst_tee_notify_alloc_pad (tee);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue