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:
Linus Nielsen Feltzing 2003-10-23 20:22:54 +00:00
parent eee3720ebe
commit b47c580207

View file

@ -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,