[asterisk-commits] seanbright: branch 1.8 r355622 - /branches/1.8/main/audiohook.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 16 14:01:19 CST 2012


Author: seanbright
Date: Thu Feb 16 14:01:15 2012
New Revision: 355622

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=355622
Log:
Revert a change to audio_audiohook_write_list that had no affect.

When I made this change initially, I was under the false impression that the
audiohooks structure remained on the channel after all of the hooks had been
detached.  This is not the case, ast ast_read takes care of removing the
audiohooks structure if the lists are empty.

Modified:
    branches/1.8/main/audiohook.c

Modified: branches/1.8/main/audiohook.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/audiohook.c?view=diff&rev=355622&r1=355621&r2=355622
==============================================================================
--- branches/1.8/main/audiohook.c (original)
+++ branches/1.8/main/audiohook.c Thu Feb 16 14:01:15 2012
@@ -621,10 +621,6 @@
 	struct ast_audiohook *audiohook = NULL;
 	int samples = frame->samples;
 
-	/* Don't translate our frame if we aren't going to bother to use it */
-	if (ast_audiohook_write_list_empty(audiohook_list))
-		return end_frame;
-
 	/* ---Part_1. translate start_frame to SLINEAR if necessary. */
 	/* If the frame coming in is not signed linear we have to send it through the in_translate path */
 	if (frame->subclass.codec != AST_FORMAT_SLINEAR) {




More information about the asterisk-commits mailing list