From: Cosimo Cecchi Date: Fri, 7 Nov 2014 18:30:33 +0000 (-0800) Subject: throbber: don't report success when no frames were added X-Git-Tag: 0.9.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=741b545868aa5bd42a64d5316c121fe9bae4bc2f;p=thirdparty%2Fplymouth.git throbber: don't report success when no frames were added 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. --- diff --git a/src/libply-splash-graphics/ply-throbber.c b/src/libply-splash-graphics/ply-throbber.c index ed671e55..c9c5bbdc 100644 --- a/src/libply-splash-graphics/ply-throbber.c +++ b/src/libply-splash-graphics/ply-throbber.c @@ -272,7 +272,7 @@ out: } free (entries); - return load_finished; + return (ply_array_get_size (throbber->frames) > 0); } bool