You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/debian/patches/upstream/0003-core-amci-call-codec-m...

41 lines
1.2 KiB

From 42df04a7b48e5a98ad73e003affebc77a10697d5 Mon Sep 17 00:00:00 2001
From: Stefan Sayer <stefan.sayer@googlemail.com>
Date: Wed, 24 Jun 2015 05:41:09 +0200
Subject: [PATCH] core:amci: call codec module init function with
mod_config_path param
---
core/AmPlugIn.cpp | 2 +-
core/amci/amci.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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.
--
2.1.4