diff options
Diffstat (limited to 'src/PlaylistDatabase.cxx')
-rw-r--r-- | src/PlaylistDatabase.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PlaylistDatabase.cxx b/src/PlaylistDatabase.cxx index 984af4adc..edc6a2815 100644 --- a/src/PlaylistDatabase.cxx +++ b/src/PlaylistDatabase.cxx @@ -46,15 +46,15 @@ playlist_vector_save(FILE *fp, const PlaylistVector &pv) } bool -playlist_metadata_load(FILE *fp, PlaylistVector &pv, const char *name, - GString *buffer, GError **error_r) +playlist_metadata_load(TextFile &file, PlaylistVector &pv, const char *name, + GError **error_r) { PlaylistInfo pm(name, 0); char *line, *colon; const char *value; - while ((line = read_text_line(fp, buffer)) != NULL && + while ((line = file.ReadLine()) != NULL && strcmp(line, "playlist_end") != 0) { colon = strchr(line, ':'); if (colon == NULL || colon == line) { |