]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Revert a change to audio_audiohook_write_list that had no affect.
authorSean Bright <sean@malleable.com>
Thu, 16 Feb 2012 20:01:15 +0000 (20:01 +0000)
committerSean Bright <sean@malleable.com>
Thu, 16 Feb 2012 20:01:15 +0000 (20:01 +0000)
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.

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

main/audiohook.c

index 422f88b5d7ee8df5688e89fcf464470cff1cde14..7509321162bc8c0c79e09321c600716175beb86e 100644 (file)
@@ -621,10 +621,6 @@ static struct ast_frame *audio_audiohook_write_list(struct ast_channel *chan, st
        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) {