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/tag.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/tag.c')
-rw-r--r-- | src/tag.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -101,22 +101,22 @@ char * getID3Info(struct id3_tag * tag, char * id) { } #endif -MpdTag * id3Dup(char * utf8filename) { +MpdTag * id3Dup(char * file) { MpdTag * ret = NULL; #ifdef HAVE_ID3TAG - struct id3_file * file; + struct id3_file * id3_file; struct id3_tag * tag; char * str; - file = id3_file_open(rmp2amp(utf8ToFsCharset(utf8filename)), - ID3_FILE_MODE_READONLY); - if(!file) { + id3_file = id3_file_open(file, ID3_FILE_MODE_READONLY); + + if(!id3_file) { return NULL; } - tag = id3_file_tag(file); + tag = id3_file_tag(id3_file); if(!tag) { - id3_file_close(file); + id3_file_close(id3_file); return NULL; } @@ -148,7 +148,7 @@ MpdTag * id3Dup(char * utf8filename) { ret->track = str; } - id3_file_close(file); + id3_file_close(id3_file); #endif return ret; |