timeline: Ensure waiting_first_tick is set before adding the timeline
Just in case the timeline starts being prodded by the ClutterMasterClock before the add function returns. (This has not been verified.) https://bugzilla.gnome.org/show_bug.cgi?id=755357
This commit is contained in:
parent
8e52f8c61e
commit
ae1a84853e
@ -990,9 +990,9 @@ set_is_playing (ClutterTimeline *timeline,
|
||||
master_clock = _clutter_master_clock_get_default ();
|
||||
if (priv->is_playing)
|
||||
{
|
||||
_clutter_master_clock_add_timeline (master_clock, timeline);
|
||||
priv->waiting_first_tick = TRUE;
|
||||
priv->current_repeat = 0;
|
||||
_clutter_master_clock_add_timeline (master_clock, timeline);
|
||||
}
|
||||
else
|
||||
_clutter_master_clock_remove_timeline (master_clock, timeline);
|
||||
|
Loading…
Reference in New Issue
Block a user