forked from len0rd/rockbox
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
This commit is contained in:
parent
186bb51fcc
commit
75117cc993
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue