[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] module: set log level before audio initialization
From: |
Andrei Kholodnyi |
Subject: |
[PATCH] module: set log level before audio initialization |
Date: |
Tue, 2 Feb 2010 18:02:48 +0100 |
module: set log level before audio initialization
Signed-off-by: Andrei Kholodnyi <Andrei.Kholodnyi at gmail.com>
---
src/server/module.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/server/module.c b/src/server/module.c
index 63faefc..3eecece 100644
--- a/src/server/module.c
+++ b/src/server/module.c
@@ -204,10 +204,11 @@ load_output_module(char* mod_name, char* mod_prog, char*
mod_cfgfile, char* mod_
MSG(4, "Switching debugging on for output module %s",
module->name);
output_module_debug(module);
}
- /* Initialize audio settings */
- ret = output_send_audio_settings(module);
+
+ /* Send log level configuration setting */
+ ret = output_send_loglevel_setting(module);
if (ret !=0){
- MSG(1, "ERROR: Can't initialize audio in output module, see
reason above.");
+ MSG(1, "ERROR: Can't set the log level inin the output module.");
module->working = 0;
kill(module->pid, 9);
waitpid(module->pid, NULL, WNOHANG);
@@ -215,10 +216,10 @@ load_output_module(char* mod_name, char* mod_prog, char*
mod_cfgfile, char* mod_
return NULL;
}
- /* Send log level configuration setting */
- ret = output_send_loglevel_setting(module);
+ /* Initialize audio settings */
+ ret = output_send_audio_settings(module);
if (ret !=0){
- MSG(1, "ERROR: Can't set the log level inin the output module.");
+ MSG(1, "ERROR: Can't initialize audio in output module, see
reason above.");
module->working = 0;
kill(module->pid, 9);
waitpid(module->pid, NULL, WNOHANG);
--
1.6.3.3
- [PATCH] module: set log level before audio initialization,
Andrei Kholodnyi <=