diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-09 22:07:01 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-09 22:07:01 +0000 |
commit | 598db0d296a8c16e181b488040a324f9ae20cc33 (patch) | |
tree | f42184b12895cd9fad298f0db6808fa262c1e5c9 /src/inputPlugins/mod_plugin.c | |
parent | 4abf1b7d56425be009c8d6826a753b8682bc7c22 (diff) | |
download | mpd-598db0d296a8c16e181b488040a324f9ae20cc33.tar.gz mpd-598db0d296a8c16e181b488040a324f9ae20cc33.tar.xz mpd-598db0d296a8c16e181b488040a324f9ae20cc33.zip |
work in progress
git-svn-id: https://svn.musicpd.org/mpd/branches/r2562-metadata-handling-rewrite@2566 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/mod_plugin.c')
-rw-r--r-- | src/inputPlugins/mod_plugin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inputPlugins/mod_plugin.c b/src/inputPlugins/mod_plugin.c index 2a03cc404..a204867fb 100644 --- a/src/inputPlugins/mod_plugin.c +++ b/src/inputPlugins/mod_plugin.c @@ -212,6 +212,7 @@ int mod_decode(OutputBuffer * cb, DecoderControl * dc, char * path) { MpdTag * modTagDup(char * file) { MpdTag * ret = NULL; MODULE * moduleHandle; + char * title = NULL; if(mod_initMikMod() < 0) return NULL; @@ -222,7 +223,8 @@ MpdTag * modTagDup(char * file) { ret = newMpdTag(); ret->time = 0; - ret->title = Player_LoadTitle(file); + title = Player_LoadTitle(file); + if(title) addItemToMpdTag(ret, TAG_ITEM_TITLE, title); fail: MikMod_Exit(); |