[svn-commits] jrose: branch 11 r413710 - /branches/11/apps/app_chanspy.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon May 12 17:02:43 CDT 2014
Author: jrose
Date: Mon May 12 17:02:34 2014
New Revision: 413710
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=413710
Log:
app_chanspy: Fix a test that was failing on account of r413551
ASTERISK-23381 #close
ASTERISK-23381 #comment Reported by: Robert Moss
Review: https://reviewboard.asterisk.org/r/3505/
Modified:
branches/11/apps/app_chanspy.c
Modified: branches/11/apps/app_chanspy.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/app_chanspy.c?view=diff&rev=413710&r1=413709&r2=413710
==============================================================================
--- branches/11/apps/app_chanspy.c (original)
+++ branches/11/apps/app_chanspy.c Mon May 12 17:02:34 2014
@@ -661,16 +661,16 @@
bridge_connected = 1;
}
- if (!bridge_connected) {
- continue;
- }
-
ast_audiohook_lock(&csth.whisper_audiohook);
- ast_audiohook_lock(&csth.bridge_whisper_audiohook);
ast_audiohook_write_frame(&csth.whisper_audiohook, AST_AUDIOHOOK_DIRECTION_WRITE, f);
- ast_audiohook_write_frame(&csth.bridge_whisper_audiohook, AST_AUDIOHOOK_DIRECTION_WRITE, f);
ast_audiohook_unlock(&csth.whisper_audiohook);
- ast_audiohook_unlock(&csth.bridge_whisper_audiohook);
+
+ if (bridge_connected) {
+ ast_audiohook_lock(&csth.bridge_whisper_audiohook);
+ ast_audiohook_write_frame(&csth.bridge_whisper_audiohook, AST_AUDIOHOOK_DIRECTION_WRITE, f);
+ ast_audiohook_unlock(&csth.bridge_whisper_audiohook);
+ }
+
ast_frfree(f);
continue;
} else if (ast_test_flag(flags, OPTION_WHISPER) && f->frametype == AST_FRAME_VOICE) {
More information about the svn-commits
mailing list