From 737054b2ef9297e9cf435e6f1d73bdaeef091cd8 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 29 Dec 2022 10:13:04 +0100 Subject: [PATCH] MT#55831 core:amci: call codec module init function with mod_config_path param (real ticket number: TT#13019) Change-Id: Ia97d6274f948fa9ff96ec0964f4fef5e8eca1e5e --- 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 a677c17a..3e825577 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 de6dbdbd..68617f26 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.