nle: clear seek event properly

Use gst_clear_event instead of g_clear_object
avoiding a failing gobject unref

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3140>
This commit is contained in:
Stéphane Cerveau 2022-03-28 13:20:40 +02:00 committed by GStreamer Marge Bot
parent f8b248cb1a
commit aaa7a690fa

View file

@ -1244,7 +1244,7 @@ nle_composition_dispose (GObject * object)
g_list_free (priv->objects_stop);
g_list_free_full (priv->actions, (GDestroyNotify) _remove_each_action);
g_clear_object (&priv->stack_initialization_seek);
gst_clear_event (&priv->stack_initialization_seek);
nle_composition_reset_target_pad (comp);