1
0
Fork 0
forked from len0rd/rockbox

Partial fix for FS#12702: playlist catalogue silently fails to save files

Change-Id: I13130f6b257b38e7a0d8ae22accd182330ff4e9f
This commit is contained in:
Christian Soffke 2022-05-28 18:26:04 +02:00 committed by Solomon Peachy
parent a6e9ecb086
commit 3f3b738e06

View file

@ -233,8 +233,10 @@ static int add_to_playlist(const char* playlist, bool new_playlist,
fd = open(playlist, O_CREAT|O_WRONLY|O_APPEND, 0666); fd = open(playlist, O_CREAT|O_WRONLY|O_APPEND, 0666);
if(fd < 0) if(fd < 0)
{
splash(HZ*2, ID2P(LANG_FAILED));
return result; return result;
}
/* In case we're in the playlist directory */ /* In case we're in the playlist directory */
reload_directory(); reload_directory();