]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[animation] don't go into loop with 0 frame animations
authorRay Strode <rstrode@redhat.com>
Mon, 24 Aug 2009 13:48:24 +0000 (09:48 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 24 Aug 2009 13:48:24 +0000 (09:48 -0400)
The animation class doesn't handle its frames missing
too well right now.  In fact, it goes into an infinite
loop instead of completing.

This commit fixes that.

src/libplybootsplash/ply-animation.c

index d3b978ba96af3d545837d561cc8cefb4b9fa6379..7d2c481dc98c9124d707dee3b179d080da400c59 100644 (file)
@@ -151,7 +151,7 @@ animate_at_time (ply_animation_t *animation,
   number_of_frames = ply_array_get_size (animation->frames);
 
   if (number_of_frames == 0)
-    return true;
+    return false;
 
   should_continue = true;