Merge pull request #8017 from orbea/playlist

Silence errors for empty playlist files.
This commit is contained in:
Twinaphex 2019-01-16 19:33:56 +01:00 committed by GitHub
commit d70a49ea6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)