stream: Ignore declined streams for some topology calls.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 14 Jun 2017 18:07:17 +0000 (13:07 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 15 Jun 2017 14:42:15 +0000 (09:42 -0500)
commit4797a8bb810c7b7c5445f49f367e3f054797fd7c
tree08fc0b4e726e74ed43f238fcb127f2b0f181783a
parent06265b8c8a7e38707c76b5ca257882223797e612
stream: Ignore declined streams for some topology calls.

* Made ast_format_cap_from_stream_topology() not include any formats from
declined streams.

* Made ast_stream_topology_get_first_stream_by_type() ignore declined
streams to return the first active stream of the type.

* Updated unit tests to check these changes have the expected effect.

Change-Id: Iabbc6a3e8edf263a25fd3056c3c614407c7897df
include/asterisk/stream.h
main/stream.c
tests/test_stream.c