summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2002-07-11 16:49:29 +0000
committerMark Spencer <markster@digium.com>2002-07-11 16:49:29 +0000
commit67751c3992e39e1652d9a2ac150a49b62695a9c3 (patch)
tree7dc81a4ba4c64587bf70a946a9c42e10484fef81 /res
parent54c89ccea960ee989912d5a10afdce57c899550d (diff)
Version 0.2.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rwxr-xr-xres/res_musiconhold.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index c696bd55a..2630ba7c2 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -100,8 +100,9 @@ static pthread_mutex_t moh_lock = AST_MUTEX_INITIALIZER;
static void child_handler(int sig)
{
int status;
- if (wait4(-1,&status, WNOHANG, NULL)<1)
- ast_log(LOG_NOTICE, "Huh? Child handler, but nobody there?\n");
+ if (wait4(-1,&status, WNOHANG, NULL)<1)
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Huh? Child handler, but nobody there?\n");
}
static int spawn_mp3(struct mohclass *class)
@@ -126,7 +127,9 @@ static int spawn_mp3(struct mohclass *class)
argv[3] = "--mono";
argv[4] = "-r";
argv[5] = "8000";
- argc = 6;
+ argv[6] = "-b";
+ argv[7] = "2048";
+ argc = 8;
if (class->quiet) {
argv[argc++] = "-f";
argv[argc++] = "8192";