Always show correct play mode

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4243 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2004-01-15 23:05:13 +00:00
parent 7c75386a83
commit c5f0b46065

View file

@ -663,11 +663,11 @@ int wps_show(void)
while ( 1 )
{
bool mpeg_paused = (mpeg_status() & MPEG_STATUS_PAUSE)?true:false;
status_set_playmode(paused ? STATUS_PAUSE : STATUS_PLAY);
/* did someone else (i.e power thread) change mpeg pause mode? */
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,
about to shut down. lets save the settings. */