diff options
author | Max Kellermann <max@duempel.org> | 2013-10-26 15:14:54 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-26 15:38:29 +0200 |
commit | a40246d3123d4bd0d1be638cd7f7b91274d8f23d (patch) | |
tree | d1384fdce2b186c00b4697d5475c97bf4dbc4b41 /src/tag/TagId3.cxx | |
parent | 4a5aad0948eb782ec6b74a1f038c0e5635c1bb9b (diff) | |
download | mpd-a40246d3123d4bd0d1be638cd7f7b91274d8f23d.tar.gz mpd-a40246d3123d4bd0d1be638cd7f7b91274d8f23d.tar.xz mpd-a40246d3123d4bd0d1be638cd7f7b91274d8f23d.zip |
TagFile: use Path instead of const char *
Diffstat (limited to 'src/tag/TagId3.cxx')
-rw-r--r-- | src/tag/TagId3.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tag/TagId3.cxx b/src/tag/TagId3.cxx index 63df529d3..df70a95e5 100644 --- a/src/tag/TagId3.cxx +++ b/src/tag/TagId3.cxx @@ -29,6 +29,8 @@ #include "ConfigGlobal.hxx" #include "Riff.hxx" #include "Aiff.hxx" +#include "fs/Path.hxx" +#include "fs/FileSystem.hxx" #include <glib.h> #include <id3tag.h> @@ -539,9 +541,9 @@ tag_id3_riff_aiff_load(FILE *file) } struct id3_tag * -tag_id3_load(const char *path_fs, Error &error) +tag_id3_load(Path path_fs, Error &error) { - FILE *file = fopen(path_fs, "rb"); + FILE *file = FOpen(path_fs, "rb"); if (file == nullptr) { error.FormatErrno("Failed to open file %s", path_fs); return nullptr; @@ -559,7 +561,7 @@ tag_id3_load(const char *path_fs, Error &error) } bool -tag_id3_scan(const char *path_fs, +tag_id3_scan(Path path_fs, const struct tag_handler *handler, void *handler_ctx) { Error error; |