diff options
author | Sean Bright <sean@malleable.com> | 2011-12-28 21:39:12 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2011-12-28 21:39:12 +0000 |
commit | 9e48f6799dd17c5f3c90140d8a7f348eb4335081 (patch) | |
tree | 4da3fbffb4604d0e846e7325764f60ea709fb280 /main/audiohook.c | |
parent | e8e41a05e76866cce42d6f7d3f8cbf72c155d03b (diff) |
Use ast_audiohook_write_list_empty to determine if our lists are empty instead
of duplicating that logic.
........
Merged revisions 349289 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 349290 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@349291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/audiohook.c')
-rw-r--r-- | main/audiohook.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/main/audiohook.c b/main/audiohook.c index 02207443b..ad5ef17cc 100644 --- a/main/audiohook.c +++ b/main/audiohook.c @@ -784,9 +784,7 @@ static struct ast_frame *audio_audiohook_write_list(struct ast_channel *chan, st int removed = 0; /* 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. */ |