]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use ast_audiohook_write_list_empty to determine if our lists are empty instead
authorSean Bright <sean@malleable.com>
Wed, 28 Dec 2011 21:30:20 +0000 (21:30 +0000)
committerSean Bright <sean@malleable.com>
Wed, 28 Dec 2011 21:30:20 +0000 (21:30 +0000)
of duplicating that logic.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@349289 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/audiohook.c

index 0ec8adaeacfff995a91129a4b241cbe6f40b8f4e..422f88b5d7ee8df5688e89fcf464470cff1cde14 100644 (file)
@@ -622,9 +622,7 @@ static struct ast_frame *audio_audiohook_write_list(struct ast_channel *chan, st
        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. */