Skip to content

Commit

Permalink
Silence errors for empty playlist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Jan 16, 2019
1 parent 31b1a91 commit e503f9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e503f9e

Please sign in to comment.