]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
throbber: don't report success when no frames were added
authorCosimo Cecchi <cosimo@endlessm.com>
Fri, 7 Nov 2014 18:30:33 +0000 (10:30 -0800)
committerRay Strode <rstrode@redhat.com>
Mon, 5 Jan 2015 17:49:50 +0000 (12:49 -0500)
Currently, the throbber 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 throbber.
In case none of them are, we'll end up not adding any frames, so we
should not report a successful load.

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

index ed671e553010a27154d3204af7fed9d74eded9bf..c9c5bbdccc9d822bbea18be043bb52d90d2ffd84 100644 (file)
@@ -272,7 +272,7 @@ out:
         }
         free (entries);
 
-        return load_finished;
+        return (ply_array_get_size (throbber->frames) > 0);
 }
 
 bool