TagFile: use Path instead of const char *

This commit is contained in:
Max Kellermann
2013-10-26 15:14:54 +02:00
parent 4a5aad0948
commit a40246d312
16 changed files with 52 additions and 32 deletions

View File

@@ -23,6 +23,7 @@
#include "ReplayGainInfo.hxx"
#include "ConfigGlobal.hxx"
#include "util/Error.hxx"
#include "fs/Path.hxx"
#include <id3tag.h>
@@ -56,7 +57,7 @@ int main(int argc, char **argv)
const char *path = argv[1];
Error error;
struct id3_tag *tag = tag_id3_load(path, error);
struct id3_tag *tag = tag_id3_load(Path::FromFS(path), error);
if (tag == NULL) {
if (error.IsDefined())
g_printerr("%s\n", error.GetMessage());