summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred W. Bauer <fred.w.bauer@gmail.com>2012-07-17 14:55:14 -0400
committerJonathan Gordon <rockbox@jdgordon.info>2012-08-14 06:23:24 +0200
commit53c6bab75b2c6b64d20090a82004f46dbf53bceb (patch)
treec7e2cbd105013c82af5075866239b82cabef1a23
parent70eb3e6a563758a80ec894c009ca51bd79945043 (diff)
downloadrockbox-53c6bab.tar.gz
rockbox-53c6bab.tar.bz2
rockbox-53c6bab.zip
We should reload the playlist control file when leaving
USB mode to make sure the filedescriptor is correct. Change-Id: I2905eaf27533d935a0458b630372584e353c7160 Reviewed-on: http://gerrit.rockbox.org/294 Reviewed-by: Michael Giacomelli <mgiacomelli@gmail.com> Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
-rw-r--r--apps/gui/usb_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/usb_screen.c b/apps/gui/usb_screen.c
index 31e0829eb7..a02516fefb 100644
--- a/apps/gui/usb_screen.c
+++ b/apps/gui/usb_screen.c
@@ -39,6 +39,7 @@
#include "appevents.h"
#include "usb_screen.h"
#include "skin_engine/skin_engine.h"
+#include "playlist.h"
#ifdef HAVE_LCD_BITMAP
#include "bitmaps/usblogo.h"
@@ -330,6 +331,8 @@ void gui_usb_screen_run(bool early_usb)
/* Not pretty, reload all settings so fonts are loaded again correctly */
settings_apply(true);
settings_apply_skins();
+ /* Reload playlist */
+ playlist_resume();
}
#endif