summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-12-26 12:39:53 -0600
committerWilliam Wilgus <me.theuser@yahoo.com>2019-01-04 05:28:26 +0100
commit929ea73cd6052c9171d5884f9469ac2ba04af495 (patch)
tree1652bb739dec829cb2731a67d153fe27359b0bbd
parent52ed74aad01a6a8556692fdb39e3f3546d039b19 (diff)
downloadrockbox-929ea73cd6052c9171d5884f9469ac2ba04af495.tar.gz
rockbox-929ea73cd6052c9171d5884f9469ac2ba04af495.zip
playlist.c suppress playlist access error on usb plug
Change-Id: I6bf446ecb17f5526c2f37158e672f06a5435f5a9
-rw-r--r--apps/playlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 7420b0afad..b6f19418ed 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1434,7 +1434,9 @@ static int get_filename(struct playlist_info* playlist, int index, int seek,
1434 1434
1435 if (max < 0) 1435 if (max < 0)
1436 { 1436 {
1437 if (control_file) 1437 if (usb_detect() == USB_INSERTED)
1438 ; /* ignore error on usb plug */
1439 else if (control_file)
1438 splash(HZ*2, ID2P(LANG_PLAYLIST_CONTROL_ACCESS_ERROR)); 1440 splash(HZ*2, ID2P(LANG_PLAYLIST_CONTROL_ACCESS_ERROR));
1439 else 1441 else
1440 splash(HZ*2, ID2P(LANG_PLAYLIST_ACCESS_ERROR)); 1442 splash(HZ*2, ID2P(LANG_PLAYLIST_ACCESS_ERROR));