From f9af0d97b09d45259dcde44add726f42f6ede979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 25 Oct 2019 13:58:23 +0300 Subject: [PATCH] nleghostpad: Deactivate pad before removing it from the element Otherwise we might have a pad floating around that is still activated, or even finalize a pad that is still activated. --- plugins/nle/nleghostpad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/nle/nleghostpad.c b/plugins/nle/nleghostpad.c index cda0b0d5..35dfc246 100644 --- a/plugins/nle/nleghostpad.c +++ b/plugins/nle/nleghostpad.c @@ -749,6 +749,7 @@ nle_object_remove_ghost_pad (NleObject * object, GstPad * ghost) priv = gst_pad_get_element_private (ghost); gst_ghost_pad_set_target (GST_GHOST_PAD (ghost), NULL); + gst_pad_set_active (ghost, FALSE); gst_element_remove_pad (GST_ELEMENT (object), ghost); if (priv) g_slice_free (NlePadPrivate, priv); -- GitLab