Fix this one for non-stdio backends

Why does filestream_get_fp exist
This commit is contained in:
Alcaro 2017-12-04 13:41:04 +01:00 committed by GitHub
parent 0d4ac12310
commit 2b3cc8898a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -381,7 +381,6 @@ void playlist_write_file(playlist_t *playlist)
{
size_t i;
RFILE *file = NULL;
FILE *fp = NULL;
if (!playlist || !playlist->modified)
return;
@ -394,10 +393,8 @@ void playlist_write_file(playlist_t *playlist)
return;
}
fp = filestream_get_fp(file);
for (i = 0; i < playlist->size; i++)
fprintf(fp, "%s\n%s\n%s\n%s\n%s\n%s\n",
filestream_printf(file, "%s\n%s\n%s\n%s\n%s\n%s\n",
playlist->entries[i].path ? playlist->entries[i].path : "",
playlist->entries[i].label ? playlist->entries[i].label : "",
playlist->entries[i].core_path,