mirror of
https://github.com/libretro/RetroArch
synced 2025-03-05 01:14:31 +00:00
Merge pull request #8017 from orbea/playlist
Silence errors for empty playlist files.
This commit is contained in:
commit
d70a49ea6f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user