move the scrobbler and playlist shutdown/restart calls out of tree.c and move them into the regular usb/shutdown handlers.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19124 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-11-17 07:34:00 +00:00
parent aeb60e20a3
commit ee1c231779
2 changed files with 3 additions and 4 deletions

View file

@ -1085,11 +1085,9 @@ static void ft_play_filename(char *dir, char *file)
/* These two functions are called by the USB and shutdown handlers */
void tree_flush(void)
{
scrobbler_shutdown();
#ifdef HAVE_TAGCACHE
tagcache_shutdown();
#endif
playlist_shutdown();
#ifdef HAVE_TC_RAMCACHE
tagcache_unload_ramcache();
@ -1141,5 +1139,4 @@ void tree_restore(void)
#ifdef HAVE_TAGCACHE
tagcache_start_scan();
#endif
scrobbler_init();
}