summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2021-10-21 23:38:44 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2021-11-13 08:13:04 -0500
commita4e422db9ec27dffa8099b21822c90e0637ed834 (patch)
treeb971dc464219318f7f1f7ffa573270c89241a291
parent11ddc6cf1cd4380e0bd2ec45c3debfe04810097f (diff)
downloadrockbox-a4e422db9e.tar.gz
rockbox-a4e422db9e.zip
Stop audio before applying skin
Should prevent a delay, dropouts and memory corruption that can occur when applying a skin while music is playing Change-Id: Ic2c8fd788117a7d797fb315a36e366a2e34d3460
-rw-r--r--apps/gui/skin_engine/skin_engine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c
index ce3401f41c..b3626b681d 100644
--- a/apps/gui/skin_engine/skin_engine.c
+++ b/apps/gui/skin_engine/skin_engine.c
@@ -155,6 +155,9 @@ void settings_apply_skins(void)
char filename[MAX_PATH];
static bool first_run = true;
+ if (audio_status() & AUDIO_STATUS_PLAY)
+ audio_stop();
+
skin_backdrop_init();
skins_initialised = true;