]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge_channel: Don't queue unmapped frames.
authorJoshua C. Colp <jcolp@sangoma.com>
Fri, 5 Jun 2020 09:45:18 +0000 (06:45 -0300)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 8 Jun 2020 14:57:29 +0000 (09:57 -0500)
commit51f1f78069e2fa0700ba2b2d61de1ada64947660
tree2420e7f836b3173e6da5cc255e5bce9bd883197b
parentb82fd4f236cf0d7c3324d33240013e4d331799cd
bridge_channel: Don't queue unmapped frames.

If a frame is written to a channel in a bridge we
would normally queue this frame up and the channel
thread would then act upon it. If this frame had no
stream mapping on the channel it would then be
discarded.

This change adds a check before the queueing occurs
to determine if a mapping exists. If it does not
exist then the frame is not even queued at all. This
stops a frame duplication from happening and from
the channel thread having to wake up and deal with
it.

Change-Id: I17189b9b1dec45fc7e4490e8081d444a25a00bda
main/bridge_channel.c