mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Silence errors for empty playlist files.
Fixes https://github.com/libretro/RetroArch/issues/8015
This commit is contained in:
parent
31b1a91c3b
commit
e503f9e922
@ -832,6 +832,10 @@ static bool playlist_read_file(
|
|||||||
char buf[16] = {0};
|
char buf[16] = {0};
|
||||||
int64_t bytes_read = filestream_read(file, buf, 15);
|
int64_t bytes_read = filestream_read(file, buf, 15);
|
||||||
|
|
||||||
|
/* Empty playlist file */
|
||||||
|
if (bytes_read == 0)
|
||||||
|
return true;
|
||||||
|
|
||||||
filestream_seek(file, 0, SEEK_SET);
|
filestream_seek(file, 0, SEEK_SET);
|
||||||
|
|
||||||
if (bytes_read == 15)
|
if (bytes_read == 15)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user