mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
nlecomposition: Don't leak GNode
Clear the last node before update
This commit is contained in:
parent
61c2eb6735
commit
783aba17f6
1 changed files with 4 additions and 0 deletions
|
@ -3097,6 +3097,10 @@ update_pipeline (NleComposition * comp, GstClockTime currenttime, gint32 seqnum,
|
||||||
GST_INFO_OBJECT (comp, "Setting current stack [%" GST_TIME_FORMAT " - %"
|
GST_INFO_OBJECT (comp, "Setting current stack [%" GST_TIME_FORMAT " - %"
|
||||||
GST_TIME_FORMAT "]", GST_TIME_ARGS (priv->current_stack_start),
|
GST_TIME_FORMAT "]", GST_TIME_ARGS (priv->current_stack_start),
|
||||||
GST_TIME_ARGS (priv->current_stack_stop));
|
GST_TIME_ARGS (priv->current_stack_stop));
|
||||||
|
|
||||||
|
if (priv->current)
|
||||||
|
g_node_destroy (priv->current);
|
||||||
|
|
||||||
priv->current = stack;
|
priv->current = stack;
|
||||||
|
|
||||||
if (priv->current) {
|
if (priv->current) {
|
||||||
|
|
Loading…
Reference in a new issue