nlecomposition: update base time before seeking current stack.

There could be a race where the new segments were pushed after
a seek on some / all pads before the operation had had its basetime
updated, and thus incoming segments were tweaked wrongly.

Reproducible with 3 clips composited and multiple seeks,
FIXME hard to validate.
This commit is contained in:
Mathieu Duponchelle 2014-09-26 18:28:16 +02:00 committed by Thibault Saunier
parent 84610050ae
commit 19ee23cdcc

View file

@ -1477,9 +1477,9 @@ seek_handling (NleComposition * comp, gint32 seqnum,
_set_real_eos_seqnum_from_seek (comp, toplevel_seek);
_remove_update_actions (comp);
update_operations_base_time (comp, !(comp->priv->segment->rate >= 0.0));
_seek_current_stack (comp, toplevel_seek,
_have_to_flush_downstream (update_stack_reason));
update_operations_base_time (comp, !(comp->priv->segment->rate >= 0.0));
}
return TRUE;