summaryrefslogtreecommitdiff
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-02-13 17:00:42 +0000
committerJoshua Colp <jcolp@digium.com>2017-02-13 17:00:42 +0000
commit6c4657e28ebf9cbe6d952750142d9631ff600657 (patch)
tree81376038c5727d9527c651cb3a1de6afff915659 /include/asterisk/channel.h
parent8b72ec312bd9fc439383a24d3f5c29b638758fd3 (diff)
stream: Add stream topology unit tests and fix uncovered bugs.
This change adds unit tests for the various API calls relating to stream topologies. This includes creation, destruction, inspection, and manipulation. Through this a few bugs were uncovered in the implementation: 1. Creating a topology using a format capabilities would fail as the code considered a return value of 0 from the append stream function to indicate an error which is incorrect. 2. Not all functions which placed a stream into a topology set the position on the stream itself. 3. Appending a stream would cause a frack if the position provided was the last one. This occurred because the existing stream was queried but the index was outside of what the vector was currently at for size. ASTERISK-26786 Change-Id: Id5590e87c8a605deea1a89e53169a9c011d66fa0
Diffstat (limited to 'include/asterisk/channel.h')
0 files changed, 0 insertions, 0 deletions