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:
Philip Withnall 2015-09-17 16:26:23 +01:00
parent 8e52f8c61e
commit ae1a84853e

View File

@ -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);