From: Ray Strode Date: Mon, 24 Aug 2009 13:48:24 +0000 (-0400) Subject: [animation] don't go into loop with 0 frame animations X-Git-Tag: 0.7.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d75e8cf26e46c670942c4572b9fce209cddf2906;p=thirdparty%2Fplymouth.git [animation] don't go into loop with 0 frame animations 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. --- diff --git a/src/libplybootsplash/ply-animation.c b/src/libplybootsplash/ply-animation.c index d3b978ba..7d2c481d 100644 --- a/src/libplybootsplash/ply-animation.c +++ b/src/libplybootsplash/ply-animation.c @@ -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;