Silence errors for empty playlist files.

Fixes https://github.com/libretro/RetroArch/issues/8015
This commit is contained in:
orbea 2019-01-16 09:39:43 -08:00
parent 31b1a91c3b
commit e503f9e922

View File

@ -832,6 +832,10 @@ static bool playlist_read_file(
char buf[16] = {0};
int64_t bytes_read = filestream_read(file, buf, 15);
/* Empty playlist file */
if (bytes_read == 0)
return true;
filestream_seek(file, 0, SEEK_SET);
if (bytes_read == 15)