forked from len0rd/rockbox
Don't try to fade unless audio is playing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11257 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6938f56093
commit
53d662b33c
1 changed files with 4 additions and 1 deletions
|
@ -504,8 +504,11 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
|
|||
|
||||
gui_syncsplash(0, true, str(LANG_SHUTTINGDOWN));
|
||||
|
||||
if (global_settings.fade_on_stop)
|
||||
if (global_settings.fade_on_stop
|
||||
&& (audio_status() & AUDIO_STATUS_PLAY))
|
||||
{
|
||||
fade(0);
|
||||
}
|
||||
|
||||
audio_stop();
|
||||
while (audio_status())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue