aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Tomasz Moń2008-08-29 12:37:57 +0000
committerGravatar Tomasz Moń2008-08-29 12:37:57 +0000
commit07705a41df329fc4c59f4b2783da8343acc84daa (patch)
tree4f3f18ebc54b2b4f407322e6b0e612317dbe7b7e /src/modules
parentfix on starttls (diff)
downloadKVIrc-07705a41df329fc4c59f4b2783da8343acc84daa.tar.gz
KVIrc-07705a41df329fc4c59f4b2783da8343acc84daa.tar.bz2
KVIrc-07705a41df329fc4c59f4b2783da8343acc84daa.zip
fix logic - return true only if library was loaded
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2346 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/mediaplayer/mp_xmmsinterface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/mediaplayer/mp_xmmsinterface.cpp b/src/modules/mediaplayer/mp_xmmsinterface.cpp
index f48c75eaa..338fe429d 100644
--- a/src/modules/mediaplayer/mp_xmmsinterface.cpp
+++ b/src/modules/mediaplayer/mp_xmmsinterface.cpp
@@ -117,12 +117,13 @@ bool KviXmmsInterface::loadPlayerLibrary()
if(m_pPlayerLibrary->load())
{
m_szPlayerLibraryName = *lib_name;
- break;
+ return true;
}
delete m_pPlayerLibrary;
+ m_pPlayerLibrary = 0;
lib_name++;
}
- return true;
+ return false;
}
void * KviXmmsInterface::lookupSymbol(const char * szSymbolName)