From ae1a84853e4978092afec07aaead3e3a94f738f8 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 17 Sep 2015 16:26:23 +0100 Subject: [PATCH] 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 --- clutter/clutter-timeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c index f64fd930f..5587cc0e1 100644 --- a/clutter/clutter-timeline.c +++ b/clutter/clutter-timeline.c @@ -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);