mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
nle: Avoid unsetting srcpad target after the srcpad is already freed
That leaded to segfaults
This commit is contained in:
parent
69e9acc823
commit
c8e9cf962c
1 changed files with 3 additions and 2 deletions
|
@ -214,8 +214,9 @@ element_pad_removed_cb (GstElement * element G_GNUC_UNUSED, GstPad * pad,
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (source, "Clearing up ghostpad");
|
GST_DEBUG_OBJECT (source, "Clearing up ghostpad");
|
||||||
|
|
||||||
nle_object_ghost_pad_set_target (NLE_OBJECT (source), nleobject->srcpad,
|
if (nleobject->srcpad)
|
||||||
NULL);
|
nle_object_ghost_pad_set_target (NLE_OBJECT (source), nleobject->srcpad,
|
||||||
|
NULL);
|
||||||
priv->ghostedpad = NULL;
|
priv->ghostedpad = NULL;
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (source, "The removed pad is NOT our controlled pad");
|
GST_DEBUG_OBJECT (source, "The removed pad is NOT our controlled pad");
|
||||||
|
|
Loading…
Reference in a new issue