]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
animation: don't report success when no frames were added
authorRay Strode <rstrode@redhat.com>
Fri, 7 Nov 2014 18:30:33 +0000 (10:30 -0800)
committerRay Strode <rstrode@redhat.com>
Mon, 5 Jan 2015 17:52:08 +0000 (12:52 -0500)
Currently, the animation object will report success when assets are *found* in
the directory. When loading those assets, code will apply more checks to
determine if the assets are meant for the animation.
In case none of them are, we'll end up not adding any frames, so we
should not report a successful load.

This is like commit 741b545868aa5bd42a64d5316c121fe9bae4bc2f but for
animation objects instead of throbber objects.

src/libply-splash-graphics/ply-animation.c

index 0d9561e5a03e9edf37477649d21c715aa56862ea..5c360a98af4a1939d88368c07333651226d33272 100644 (file)
@@ -287,7 +287,7 @@ out:
         }
         free (entries);
 
-        return load_finished;
+        return (ply_array_get_size (animation->frames) > 0);
 }
 
 bool