mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 15:12:30 -05:00
The boolean Code Police strikes back. This will hopefully fix bug #827966.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3985 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eee3720ebe
commit
b47c580207
1 changed files with 4 additions and 2 deletions
|
|
@ -655,9 +655,11 @@ int wps_show(void)
|
||||||
|
|
||||||
while ( 1 )
|
while ( 1 )
|
||||||
{
|
{
|
||||||
|
bool mpeg_paused = (mpeg_status() & MPEG_STATUS_PAUSE)?true:false;
|
||||||
|
|
||||||
/* did someone else (i.e power thread) change mpeg pause mode? */
|
/* did someone else (i.e power thread) change mpeg pause mode? */
|
||||||
if (paused != (mpeg_status() & MPEG_STATUS_PAUSE)) {
|
if (paused != mpeg_paused) {
|
||||||
paused = mpeg_status() & MPEG_STATUS_PAUSE;
|
paused = mpeg_paused;
|
||||||
status_set_playmode(paused ? STATUS_PAUSE : STATUS_PLAY);
|
status_set_playmode(paused ? STATUS_PAUSE : STATUS_PLAY);
|
||||||
|
|
||||||
/* if another thread paused mpeg, we are probably in car mode,
|
/* if another thread paused mpeg, we are probably in car mode,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue