mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +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,6 +214,7 @@ element_pad_removed_cb (GstElement * element G_GNUC_UNUSED, GstPad * pad,
|
|||
|
||||
GST_DEBUG_OBJECT (source, "Clearing up ghostpad");
|
||||
|
||||
if (nleobject->srcpad)
|
||||
nle_object_ghost_pad_set_target (NLE_OBJECT (source), nleobject->srcpad,
|
||||
NULL);
|
||||
priv->ghostedpad = NULL;
|
||||
|
|
Loading…
Reference in a new issue