Playback: Ensure some state coherency. paused implies playing and pause actions are bypassed if not playing. stopped implies not playing and not paused. Starting playback transistions to playing and not paused.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13360 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
34e6b6b2ae
commit
e88078f9f5
1 changed files with 3 additions and 0 deletions
|
@ -3348,6 +3348,7 @@ static void audio_play_start(size_t offset)
|
|||
playlist_end = false;
|
||||
|
||||
playing = true;
|
||||
paused = false;
|
||||
ci.new_track = 0;
|
||||
ci.seek_time = 0;
|
||||
wps_offset = 0;
|
||||
|
@ -3648,6 +3649,8 @@ static void audio_thread(void)
|
|||
|
||||
case Q_AUDIO_PAUSE:
|
||||
LOGFQUEUE("audio < Q_AUDIO_PAUSE");
|
||||
if (!playing)
|
||||
break;
|
||||
pcmbuf_pause((bool)ev.data);
|
||||
paused = (bool)ev.data;
|
||||
break ;
|
||||
|
|
Loading…
Reference in a new issue