aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-26 15:14:54 +0200
committerMax Kellermann <max@duempel.org>2013-10-26 15:38:29 +0200
commita40246d3123d4bd0d1be638cd7f7b91274d8f23d (patch)
treed1384fdce2b186c00b4697d5475c97bf4dbc4b41 /src/SongUpdate.cxx
parent4a5aad0948eb782ec6b74a1f038c0e5635c1bb9b (diff)
downloadmpd-a40246d3123d4bd0d1be638cd7f7b91274d8f23d.tar.gz
mpd-a40246d3123d4bd0d1be638cd7f7b91274d8f23d.tar.xz
mpd-a40246d3123d4bd0d1be638cd7f7b91274d8f23d.zip
TagFile: use Path instead of const char *
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r--src/SongUpdate.cxx6
1 files changed, 3 insertions, 3 deletions
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;