diff options
author | Hardeep Sidhu <dyp@pobox.com> | 2006-06-21 04:16:18 +0000 |
---|---|---|
committer | Hardeep Sidhu <dyp@pobox.com> | 2006-06-21 04:16:18 +0000 |
commit | 75117cc993442303009f64b7c1951cfa7dbe1887 (patch) | |
tree | 94c0c7d5ac0e28b166402b8125eb1f1bb99e1ad0 | |
parent | 186bb51fcc700fd0423e8e8e5334d0aa90c1caa6 (diff) |
Wait for voice to complete before stopping playback. Fixes hang when stopping from filetree while voice is playing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10141 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/playback.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c index 1e6bfa5fe7..ecfb93363e 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1836,6 +1836,11 @@ static void audio_stop_playback(void) playlist_update_resume_info( (playlist_end && ci.stop_codec)?NULL:audio_current_track()); } + + if (voice_is_playing) + while (voice_is_playing || !queue_empty(&voice_codec_queue)) + yield(); + filebufused = 0; playing = false; filling = false; |