Commit 41be342b authored by Thibault Saunier's avatar Thibault Saunier 🌵

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 #96
parent ec2325ee
Pipeline #118835 passed with stages
in 79 minutes and 5 seconds
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment