diff options
author | Corey Farrell <git@cfware.com> | 2017-11-16 13:55:14 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-11-20 15:02:21 -0500 |
commit | 746dd80eab0b243e533fcb26ad63fe322541ae03 (patch) | |
tree | e9149f8e5ed91b60462eb6909ab77a8452b3288f /main | |
parent | bef287ccf2f168737250e62daccc2e0ff6d30e59 (diff) |
abstract_jb: Remove silly usage of RAII_VAR.
Change-Id: I9d56175369363d1dc735504cf78a3a5577069f49
Diffstat (limited to 'main')
-rw-r--r-- | main/abstract_jb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/abstract_jb.c b/main/abstract_jb.c index 1c9eb5172..6e776c0cc 100644 --- a/main/abstract_jb.c +++ b/main/abstract_jb.c @@ -445,7 +445,7 @@ static int create_jb(struct ast_channel *chan, struct ast_frame *frr) /* Create a frame log file */ if (ast_test_flag(jbconf, AST_JB_LOG)) { - RAII_VAR(struct ast_channel *, bridged, ast_channel_bridge_peer(chan), ast_channel_cleanup); + struct ast_channel *bridged = ast_channel_bridge_peer(chan); char safe_logfile[30] = "/tmp/logfile-XXXXXX"; int safe_fd; @@ -481,6 +481,8 @@ static int create_jb(struct ast_channel *chan, struct ast_frame *frr) jb_framelog("JB_PUT_FIRST {now=%ld}: Dropped frame with ts=%ld and len=%ld\n", now, frr->ts, frr->len); } + + ast_channel_cleanup(bridged); } ast_verb(3, "%s jitterbuffer created on channel %s\n", jbimpl->name, ast_channel_name(chan)); |