1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Christian Soffke 2021-10-21 23:38:44 +02:00 committed by William Wilgus
parent 11ddc6cf1c
commit a4e422db9e

View file

@ -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;