summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stummvoll <michael@stummi.org>2010-12-15 11:33:22 +0000
committerMichael Stummvoll <michael@stummi.org>2010-12-15 11:33:22 +0000
commitcac01b9cc9cd44890b8cd4210cd085f44dd07758 (patch)
treedc7ab9a63aa5fd349ca22a0d666e781f0ec5e71e
parent279dff1c21c17e6598c8597a7987ded0e526269c (diff)
set the sampling rate back to default on closing,
even it is not a clean shutdown (cleanshut setted) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28835 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/rockboy/rockboy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c
index f28c0ccccd..b3fccbf8d8 100644
--- a/apps/plugins/rockboy/rockboy.c
+++ b/apps/plugins/rockboy/rockboy.c
@@ -464,13 +464,14 @@ enum plugin_status plugin_start(const void* parameter)
backlight_use_settings();
+ if(!rb->audio_status())
+ rockboy_pcm_close();
+
if(shut&&!cleanshut)
{
rb->splash(HZ/2, errormsg);
return PLUGIN_ERROR;
}
- if(!rb->audio_status())
- rockboy_pcm_close();
rb->splash(HZ/2, "Closing Rockboy");