[svn-commits] seanbright: branch 1.8 r349289 - /branches/1.8/main/audiohook.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 28 15:30:24 CST 2011


Author: seanbright
Date: Wed Dec 28 15:30:20 2011
New Revision: 349289

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=349289
Log:
Use ast_audiohook_write_list_empty to determine if our lists are empty instead
of duplicating that logic.

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=349289&r1=349288&r2=349289
==============================================================================
--- branches/1.8/main/audiohook.c (original)
+++ branches/1.8/main/audiohook.c Wed Dec 28 15:30:20 2011
@@ -622,9 +622,7 @@
 	int samples = frame->samples;
 
 	/* Don't translate our frame if we aren't going to bother to use it */
-	if (AST_LIST_EMPTY(&audiohook_list->spy_list)
-		&& AST_LIST_EMPTY(&audiohook_list->whisper_list)
-		&& AST_LIST_EMPTY(&audiohook_list->manipulate_list))
+	if (ast_audiohook_write_list_empty(audiohook_list))
 		return end_frame;
 
 	/* ---Part_1. translate start_frame to SLINEAR if necessary. */




More information about the svn-commits mailing list