diff options
author | Michael Stummvoll <michael@stummi.org> | 2010-12-15 11:33:22 +0000 |
---|---|---|
committer | Michael Stummvoll <michael@stummi.org> | 2010-12-15 11:33:22 +0000 |
commit | cac01b9cc9cd44890b8cd4210cd085f44dd07758 (patch) | |
tree | dc7ab9a63aa5fd349ca22a0d666e781f0ec5e71e | |
parent | 279dff1c21c17e6598c8597a7987ded0e526269c (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.c | 5 |
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"); |