summaryrefslogtreecommitdiff
path: root/apps/app_mp3.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-06-14 19:39:12 +0000
committerRussell Bryant <russell@russellbryant.com>2007-06-14 19:39:12 +0000
commit055d82cbce5ad588f4d612c49f56cd76f4c8bab6 (patch)
tree4fd144260e58c9a66d331fc81b46473723452479 /apps/app_mp3.c
parent60b029aa8275ef7da70281b3791a2837ffba7930 (diff)
Add a massive set of changes for converting to use the ast_debug() macro.
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_mp3.c')
-rw-r--r--apps/app_mp3.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/app_mp3.c b/apps/app_mp3.c
index e0df37d61..b0539e17b 100644
--- a/apps/app_mp3.c
+++ b/apps/app_mp3.c
@@ -193,8 +193,7 @@ static int mp3_exec(struct ast_channel *chan, void *data)
break;
}
} else {
- if (option_debug)
- ast_log(LOG_DEBUG, "No more mp3\n");
+ ast_debug(1, "No more mp3\n");
res = 0;
break;
}
@@ -202,22 +201,19 @@ static int mp3_exec(struct ast_channel *chan, void *data)
} else {
ms = ast_waitfor(chan, ms);
if (ms < 0) {
- if (option_debug)
- ast_log(LOG_DEBUG, "Hangup detected\n");
+ ast_debug(1, "Hangup detected\n");
res = -1;
break;
}
if (ms) {
f = ast_read(chan);
if (!f) {
- if (option_debug)
- ast_log(LOG_DEBUG, "Null frame == hangup() detected\n");
+ ast_debug(1, "Null frame == hangup() detected\n");
res = -1;
break;
}
if (f->frametype == AST_FRAME_DTMF) {
- if (option_debug)
- ast_log(LOG_DEBUG, "User pressed a key\n");
+ ast_debug(1, "User pressed a key\n");
ast_frfree(f);
res = 0;
break;