forked from len0rd/rockbox
patch #702874 by Craig Sather, fixes a pause bug in WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3447 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7105b28bba
commit
001226c7e1
2 changed files with 7 additions and 1 deletions
|
@ -739,6 +739,12 @@ int wps_show(void)
|
||||||
restore = true;
|
restore = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mpeg_status() & MPEG_STATUS_PAUSE) {
|
||||||
|
paused = true;
|
||||||
|
} else {
|
||||||
|
paused = false;
|
||||||
|
}
|
||||||
|
|
||||||
while ( 1 )
|
while ( 1 )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -1300,6 +1300,7 @@ static void mpeg_thread(void)
|
||||||
/* Stop the current stream */
|
/* Stop the current stream */
|
||||||
play_pending = false;
|
play_pending = false;
|
||||||
playing = false;
|
playing = false;
|
||||||
|
paused = false;
|
||||||
stop_dma();
|
stop_dma();
|
||||||
|
|
||||||
reset_mp3_buffer();
|
reset_mp3_buffer();
|
||||||
|
@ -1339,7 +1340,6 @@ static void mpeg_thread(void)
|
||||||
/* Tell the file loading code that we want to start playing
|
/* Tell the file loading code that we want to start playing
|
||||||
as soon as we have some data */
|
as soon as we have some data */
|
||||||
play_pending = true;
|
play_pending = true;
|
||||||
paused = false;
|
|
||||||
|
|
||||||
update_playlist();
|
update_playlist();
|
||||||
current_track_counter++;
|
current_track_counter++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue