From 1cf529bd9b3c83a2e9f6a0e919941d7b93b0fc43 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 23 Sep 2009 17:38:54 -0400 Subject: [PATCH] [animation] Make ply_animation_start idempotent --- src/libplybootsplash/ply-animation.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libplybootsplash/ply-animation.c b/src/libplybootsplash/ply-animation.c index 170b44ca..1fee4b9c 100644 --- a/src/libplybootsplash/ply-animation.c +++ b/src/libplybootsplash/ply-animation.c @@ -301,6 +301,9 @@ ply_animation_start (ply_animation_t *animation, { assert (animation != NULL); + if (!animation->is_stopped) + return true; + animation->loop = ply_event_loop_get_default (); animation->display = display; animation->stop_trigger = stop_trigger;