forked from len0rd/rockbox
Bug fix: Idle timeout would stop paused playback when charger was connected
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4066 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
152f07e478
commit
53989844b4
1 changed files with 3 additions and 10 deletions
|
|
@ -315,17 +315,10 @@ static void handle_auto_poweroff(void)
|
|||
!sleeptimer_active)))
|
||||
{
|
||||
if(TIME_AFTER(current_tick, last_keypress + timeout) &&
|
||||
TIME_AFTER(current_tick, last_disk_activity + timeout))
|
||||
TIME_AFTER(current_tick, last_disk_activity + timeout) &&
|
||||
TIME_AFTER(current_tick, last_charge_time + timeout))
|
||||
{
|
||||
if (mpeg_stat == (MPEG_STATUS_PLAY | MPEG_STATUS_PAUSE))
|
||||
{
|
||||
mpeg_stop();
|
||||
}
|
||||
|
||||
if (TIME_AFTER(current_tick, last_charge_time + timeout))
|
||||
{
|
||||
power_off();
|
||||
}
|
||||
power_off();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue