aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/mod_plugin.c
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2005-09-08 21:08:02 +0000
committerQball Cow <qball@qballcow.nl>2005-09-08 21:08:02 +0000
commitedcfbef90da5f3a6abf60559042d61d0f3d765d7 (patch)
treecd84b4a7b53e2ee90588a57bc581c34390b9dadd /src/inputPlugins/mod_plugin.c
parentbc666a9fc6dbd25bc9fd8cfe20d46bab9582682b (diff)
downloadmpd-edcfbef90da5f3a6abf60559042d61d0f3d765d7.tar.gz
mpd-edcfbef90da5f3a6abf60559042d61d0f3d765d7.tar.xz
mpd-edcfbef90da5f3a6abf60559042d61d0f3d765d7.zip
Patch to make the configure flag for mpd-mad and mpd-libid3tag more logic (from ticho)
git-svn-id: https://svn.musicpd.org/mpd/trunk@3477 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/mod_plugin.c')
-rw-r--r--src/inputPlugins/mod_plugin.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/inputPlugins/mod_plugin.c b/src/inputPlugins/mod_plugin.c
index 74524fed9..547f4af4a 100644
--- a/src/inputPlugins/mod_plugin.c
+++ b/src/inputPlugins/mod_plugin.c
@@ -212,10 +212,17 @@ MpdTag * modTagDup(char * file) {
MODULE * moduleHandle;
char * title;
- if(mod_initMikMod() < 0) return NULL;
+ if(mod_initMikMod() < 0) {
+ DEBUG("modTagDup: Failed to initialize MikMod\n");
+ return NULL;
+ }
- if(!(moduleHandle = Player_Load(file, 128, 0))) goto fail;
+ if(!(moduleHandle = Player_Load(file, 128, 0))) {
+ DEBUG("modTagDup: Failed to open file: %s\n",file);
+ MikMod_Exit();
+ return NULL;
+ }
Player_Free(moduleHandle);
ret = newMpdTag();
@@ -224,7 +231,6 @@ MpdTag * modTagDup(char * file) {
title = strdup(Player_LoadTitle(file));
if(title) addItemToMpdTag(ret, TAG_ITEM_TITLE, title);
-fail:
MikMod_Exit();
return ret;