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:
Brandon Low 2006-04-24 12:57:41 +00:00
parent 8ef18271dd
commit 3ac7bd7204

View file

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