]> git.ipfire.org Git - thirdparty/plymouth.git/commit
animation,throbber: allow calling stop after animation is stopped
authorRay Strode <rstrode@redhat.com>
Tue, 28 Jul 2015 14:00:25 +0000 (10:00 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 30 Jul 2015 20:03:11 +0000 (16:03 -0400)
commit02c70f069bd3293e883b329ec696d1ba73da8e8c
tree6b49bffeff6c7212ec079c23148aed7730fbc1fc
parentd37da49aca9ec9a73a02915e33dfe97da11ae7f0
animation,throbber: allow calling stop after animation is stopped

Right now if a user calls ply_throbber_stop or ply_animation_stop
after the animation is stopped things malfunction.  In the case
of the throbber we end up never calling the stop completion handler
passed in, and in the case of the animation, we end up setting
some state that shouldn't be set.

This commit checks if the animation and throbber objects are stopped,
and if so does the necessary steps to process the late stop request.

Spotted by Dave Airlie
src/libply-splash-graphics/ply-animation.c
src/libply-splash-graphics/ply-throbber.c