summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Bigliardi <shammash@artha.org>2009-10-14 12:14:05 (GMT)
committer Luca Bigliardi <shammash@artha.org>2009-10-14 12:36:58 (GMT)
commit54611f9650874e48e879645cb6ae48f5b9bb4d2e (patch)
treef1a994a38ca5ea58cbea48120ab15f94f8efec33
parent4bea5c8813a45b0c94f8cf02f20e99645ea966f5 (diff)
LameWrap, safe reload
Don't load twice. Signed-off-by: Luca Bigliardi <shammash@artha.org>
-rw-r--r--src/lame_wrap.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lame_wrap.cpp b/src/lame_wrap.cpp
index cb50a68..c209861 100644
--- a/src/lame_wrap.cpp
+++ b/src/lame_wrap.cpp
@@ -68,6 +68,7 @@ bool LameWrap::_setsymbolpointer(const char *symbol, void** pointer) {
bool LameWrap::load(const char* path){
if (LameWrap::_libhandle) {
act("%s: library already loaded", __PRETTY_FUNCTION__);
+ return true;
}
LameWrap::_libhandle = dlopen(path,RTLD_LAZY);