summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-10-23 20:22:54 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-10-23 20:22:54 +0000
commitb47c580207cc09fdcc3b08ef0324fb8dd034ddd4 (patch)
tree5538ff7cb8c7fa6ce609c5f88e6ed5f99beb828c /apps
parenteee3720ebef4eb333e7df53c9706be9068ebcc0d (diff)
downloadrockbox-b47c580207cc09fdcc3b08ef0324fb8dd034ddd4.tar.gz
rockbox-b47c580207cc09fdcc3b08ef0324fb8dd034ddd4.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/wps.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/wps.c b/apps/wps.c
index c76d7ade26..1958c61f19 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -655,9 +655,11 @@ int wps_show(void)
655 655
656 while ( 1 ) 656 while ( 1 )
657 { 657 {
658 bool mpeg_paused = (mpeg_status() & MPEG_STATUS_PAUSE)?true:false;
659
658 /* did someone else (i.e power thread) change mpeg pause mode? */ 660 /* did someone else (i.e power thread) change mpeg pause mode? */
659 if (paused != (mpeg_status() & MPEG_STATUS_PAUSE)) { 661 if (paused != mpeg_paused) {
660 paused = mpeg_status() & MPEG_STATUS_PAUSE; 662 paused = mpeg_paused;
661 status_set_playmode(paused ? STATUS_PAUSE : STATUS_PLAY); 663 status_set_playmode(paused ? STATUS_PAUSE : STATUS_PLAY);
662 664
663 /* if another thread paused mpeg, we are probably in car mode, 665 /* if another thread paused mpeg, we are probably in car mode,