Fix the most likely cause of ipod nano startup race, and also seems to fix crossfade buffer reinitialization during playback for me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9790 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8ef18271dd
commit
3ac7bd7204
1 changed files with 4 additions and 2 deletions
|
@ -2357,6 +2357,8 @@ void voice_init(void)
|
|||
{
|
||||
logf("Terminating voice codec");
|
||||
remove_thread(voice_thread_num);
|
||||
if (current_codec == CODEC_IDX_VOICE)
|
||||
mutex_unlock(&mutex_codecthread);
|
||||
queue_delete(&voice_codec_queue);
|
||||
voice_thread_num = -1;
|
||||
voice_codec_loaded = false;
|
||||
|
|
Loading…
Reference in a new issue