playlist.c suppress playlist access error on usb plug
Change-Id: I6bf446ecb17f5526c2f37158e672f06a5435f5a9
This commit is contained in:
parent
52ed74aad0
commit
929ea73cd6
1 changed files with 3 additions and 1 deletions
|
@ -1434,7 +1434,9 @@ static int get_filename(struct playlist_info* playlist, int index, int seek,
|
|||
|
||||
if (max < 0)
|
||||
{
|
||||
if (control_file)
|
||||
if (usb_detect() == USB_INSERTED)
|
||||
; /* ignore error on usb plug */
|
||||
else if (control_file)
|
||||
splash(HZ*2, ID2P(LANG_PLAYLIST_CONTROL_ACCESS_ERROR));
|
||||
else
|
||||
splash(HZ*2, ID2P(LANG_PLAYLIST_ACCESS_ERROR));
|
||||
|
|
Loading…
Reference in a new issue