Save bookmark and settings on shutdown at low battery level on players without HD
Change-Id: I9b9bbf0568de9a82107b0be3b42c3fdba0a0a27d
This commit is contained in:
parent
47d6d268c0
commit
26beb30c15
1 changed files with 3 additions and 1 deletions
|
@ -322,7 +322,9 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DISK_STORAGE
|
||||
if (batt_safe) /* do not save on critical battery */
|
||||
#endif
|
||||
{
|
||||
#if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC
|
||||
if (audio_stat & AUDIO_STATUS_RECORD)
|
||||
|
@ -376,7 +378,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
|
|||
}
|
||||
#endif
|
||||
}
|
||||
#ifdef HAVE_DIRCACHE
|
||||
#if defined(HAVE_DIRCACHE) && defined(HAVE_DISK_STORAGE)
|
||||
else
|
||||
dircache_disable();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue