forked from len0rd/rockbox
Get rid of some superfluous single-purpose functions in playback.
* Remove explicit tracking of elapsed time of previous track. * Remove function to obtain auto skip flag. * Most playback events now carry the extra information instead and pass 'struct track_event *' for data. * Tweak scrobbler to use PLAYBACK_EVENT_TRACK_FINISH, which makes it cleaner and removes the struct mp3entry. Change-Id: I500d2abb4056a32646496efc3617406e36811ec5
This commit is contained in:
parent
ffa8626b0c
commit
023f6b6efd
14 changed files with 236 additions and 242 deletions
|
|
@ -269,8 +269,6 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
|
|||
{
|
||||
long msg_id = -1;
|
||||
|
||||
scrobbler_poweroff();
|
||||
|
||||
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||
if(!charger_inserted())
|
||||
#endif
|
||||
|
|
@ -349,6 +347,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
|
|||
#if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC
|
||||
audio_close_recording();
|
||||
#endif
|
||||
scrobbler_shutdown(true);
|
||||
|
||||
if(global_settings.talk_menu)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue