From a40246d3123d4bd0d1be638cd7f7b91274d8f23d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Oct 2013 15:14:54 +0200 Subject: TagFile: use Path instead of const char * --- src/SongUpdate.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/SongUpdate.cxx') diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index 7df33395b..a34734227 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -73,7 +73,7 @@ Song::LoadFile(const char *path_utf8, Directory *parent) * Attempts to load APE or ID3 tags from the specified file. */ static bool -tag_scan_fallback(const char *path, +tag_scan_fallback(Path path, const struct tag_handler *handler, void *handler_ctx) { return tag_ape_scan2(path, handler, handler_ctx) || @@ -94,13 +94,13 @@ Song::UpdateFile() return false; TagBuilder tag_builder; - if (!tag_file_scan(path_fs.c_str(), + if (!tag_file_scan(path_fs, &full_tag_handler, &tag_builder) || !tag_builder.IsDefined()) return false; if (tag_builder.IsEmpty()) - tag_scan_fallback(path_fs.c_str(), &full_tag_handler, + tag_scan_fallback(path_fs, &full_tag_handler, &tag_builder); mtime = st.st_mtime; -- cgit v1.2.3