diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-04-24 12:57:41 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-04-24 12:57:41 +0000 |
commit | 3ac7bd72047164cdd77715a52f952a4c5e3e1123 (patch) | |
tree | 775fb153d40067a0804994c404e06f8c3fe71932 | |
parent | 8ef18271dd427f94b6ff04aea812698164a11e85 (diff) |
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
-rw-r--r-- | apps/playback.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c index aa6e2c67be..b3514cbf41 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1955,8 +1955,8 @@ static void track_skip_done(bool was_manual) else if (pcmbuf_is_crossfade_enabled() && !pcmbuf_is_crossfade_active() && global_settings.crossfade != 2) { - pcmbuf_crossfade_init(false); - codec_track_changed(); + pcmbuf_crossfade_init(false); + codec_track_changed(); } /* Gapless playback. */ else @@ -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; |