[prev in list] [next in list] [prev in thread] [next in thread]
List: semsdev
Subject: [Semsdev] git:master:42df04a7: core:amci: call codec module init function with mod_config_path param
From: Stefan Sayer <stefan.sayer () googlemail ! com>
Date: 2015-06-24 3:47:29
Message-ID: E1Z7ber-0007bc-1u () www ! kamailio ! org
[Download RAW message or body]
Module: sems
Branch: master
Commit: 42df04a7b48e5a98ad73e003affebc77a10697d5
URL: https://github.com/sems-server/sems/commit/42df04a7b48e5a98ad73e003affebc77a10697d5
Author: Stefan Sayer <stefan.sayer@googlemail.com>
Committer: Stefan Sayer <stefan.sayer@googlemail.com>
Date: 2015-06-24T05:41:45+02:00
core:amci: call codec module init function with mod_config_path param
---
Modified: core/AmPlugIn.cpp
Modified: core/amci/amci.h
---
Diff: https://github.com/sems-server/sems/commit/42df04a7b48e5a98ad73e003affebc77a10697d5.diff
Patch: https://github.com/sems-server/sems/commit/42df04a7b48e5a98ad73e003affebc77a10697d5.patch
---
diff --git a/core/AmPlugIn.cpp b/core/AmPlugIn.cpp
index a677c17..3e82557 100644
--- a/core/AmPlugIn.cpp
+++ b/core/AmPlugIn.cpp
@@ -526,7 +526,7 @@ int AmPlugIn::loadAudioPlugIn(amci_exports_t* exports)
}
if (exports->module_load) {
- if (exports->module_load() < 0) {
+ if (exports->module_load(AmConfig::ModConfigPath.c_str()) < 0) {
ERROR("initializing audio plug-in!\n");
return -1;
}
diff --git a/core/amci/amci.h b/core/amci/amci.h
index de6dbdb..68617f2 100644
--- a/core/amci/amci.h
+++ b/core/amci/amci.h
@@ -227,7 +227,7 @@ typedef int (*amci_file_mem_close_t)( unsigned char* mptr,
* this function initializes the codec module.
* @return 0 on success, <0 on error
*/
-typedef int (*amci_codec_module_load_t)(void);
+typedef int (*amci_codec_module_load_t)(const char* ModConfigPath);
/**
* \brief Codec's module's destroy function pointer.
_______________________________________________
Semsdev mailing list
Semsdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/semsdev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic