nle: Delay marking object as not in composition

Instead of doing it at the time of resetting `object->in_composition`
when user calls `gst_bin_remove` do it after we actually removed
it from the object thread, and do it in the `nle_object_reset`
method where it belongs

Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/issues/96
This commit is contained in:
Thibault Saunier 2020-03-11 19:38:19 -03:00
parent ec2325ee9b
commit 41be342ba8
2 changed files with 1 additions and 1 deletions

View file

@ -3543,7 +3543,6 @@ nle_composition_remove_object (GstBin * bin, GstElement * element)
object = NLE_OBJECT (element);
object->in_composition = FALSE;
_add_remove_object_action (comp, object);
return TRUE;

View file

@ -738,6 +738,7 @@ nle_object_reset (NleObject * object)
object->inpoint = GST_CLOCK_TIME_NONE;
object->priority = 0;
object->active = TRUE;
object->in_composition = FALSE;
}
GType