]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bridge_native_rtp.c: Fixup native_rtp_framehook()
authorRichard Mudgett <rmudgett@digium.com>
Tue, 29 Aug 2017 19:22:15 +0000 (14:22 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 29 Aug 2017 19:37:17 +0000 (14:37 -0500)
commit2ec26dc63508176813f482faf425b5d7bf3eb857
tree00ac82cb82a4f52ce8a2fbfd4e741f1e8c0e1fd7
parentd05ab9e91a05725fb7cde40d217497b224a106d0
bridge_native_rtp.c: Fixup native_rtp_framehook()

* Fix framehook to test frame type for control frame.
* Made framehook exit early if frame type is not a control frame.
* Eliminated RAII_VAR in framehook.
* Use switch instead of else-if ladder for control frame handling.

Change-Id: Ia555fc3600bd85470e3c0141147dbe3ad07c1d18
bridges/bridge_native_rtp.c