mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-13 05:18:55 +00:00
Merge "bridge_softmix: Note why ast_stream_topology_set_stream cannot fail." into 15
This commit is contained in:
@@ -541,6 +541,8 @@ static int append_all_streams(struct ast_stream_topology *dest,
|
|||||||
dest_index++;
|
dest_index++;
|
||||||
|
|
||||||
if (ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) {
|
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);
|
ast_stream_topology_set_stream(dest, dest_index - 1, clone);
|
||||||
added = 1;
|
added = 1;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user