diff options
author | Joshua Colp <jcolp@digium.com> | 2017-11-09 03:42:51 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-11-09 03:42:51 -0600 |
commit | 47d484835853462f3f65bc70312c64e1644e2148 (patch) | |
tree | a71bb767ba5c3c2788701630db81091cc830619e | |
parent | fe23c480817e96e7aa91a430e851f5fc9531f95c (diff) | |
parent | 05f557820bd4c9aec3d148b8d1f1909386fb11da (diff) |
Merge "bridge_softmix: Note why ast_stream_topology_set_stream cannot fail."
-rw-r--r-- | bridges/bridge_softmix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bridges/bridge_softmix.c b/bridges/bridge_softmix.c index f490967e2..8de88f257 100644 --- a/bridges/bridge_softmix.c +++ b/bridges/bridge_softmix.c @@ -541,6 +541,8 @@ static int append_all_streams(struct ast_stream_topology *dest, dest_index++; if (ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) { + /* This cannot fail because dest_index - 1 is less than the + * current count in dest. */ ast_stream_topology_set_stream(dest, dest_index - 1, clone); added = 1; break; |