[clutter] timeline: Ensure waiting_first_tick is set before adding the timeline



commit ae1a84853e4978092afec07aaead3e3a94f738f8
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Sep 17 16:26:23 2015 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c
index f64fd93..5587cc0 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]