From b47c580207cc09fdcc3b08ef0324fb8dd034ddd4 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 23 Oct 2003 20:22:54 +0000 Subject: [PATCH] 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 --- apps/wps.c | 6 ++++-- 1 file 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) while ( 1 ) { + bool mpeg_paused = (mpeg_status() & MPEG_STATUS_PAUSE)?true:false; + /* did someone else (i.e power thread) change mpeg pause mode? */ - if (paused != (mpeg_status() & MPEG_STATUS_PAUSE)) { - paused = mpeg_status() & MPEG_STATUS_PAUSE; + if (paused != mpeg_paused) { + paused = mpeg_paused; status_set_playmode(paused ? STATUS_PAUSE : STATUS_PLAY); /* if another thread paused mpeg, we are probably in car mode,