diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-31 02:21:06 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-31 02:21:06 +0000 |
commit | 97fe75a0bf4ce5a0769a7509f758eda3f52fd6b3 (patch) | |
tree | edf2f869cbd4e8b0bd728b6162ae4c2b61700f7a /src/inputPlugins/mp3_plugin.c | |
parent | 30424cb3e9cf500165621802f65d552218e080f3 (diff) | |
download | mpd-97fe75a0bf4ce5a0769a7509f758eda3f52fd6b3.tar.gz mpd-97fe75a0bf4ce5a0769a7509f758eda3f52fd6b3.tar.xz mpd-97fe75a0bf4ce5a0769a7509f758eda3f52fd6b3.zip |
little cleanup of plugin stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@1247 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/mp3_plugin.c')
-rw-r--r-- | src/inputPlugins/mp3_plugin.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c index 594f17876..de23b6c7b 100644 --- a/src/inputPlugins/mp3_plugin.c +++ b/src/inputPlugins/mp3_plugin.c @@ -36,7 +36,6 @@ #include "../log.h" #include "../utils.h" #include "../tag.h" -#include "../path.h" #include <stdio.h> #include <string.h> @@ -613,21 +612,19 @@ int mp3_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) { return 0; } -MpdTag * mp3_tagDup(char * utf8file) { +MpdTag * mp3_tagDup(char * file) { MpdTag * ret = NULL; int time; - ret = id3Dup(utf8file); + ret = id3Dup(file); - time = getMp3TotalTime(rmp2amp(utf8ToFsCharset(utf8file))); + time = getMp3TotalTime(file); if(time>=0) { if(!ret) ret = newMpdTag(); ret->time = time; } - if(ret) validateUtf8Tag(ret); - return ret; } |