mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-12 04:48:51 +00:00
Merge "stream: Return error from ast_stream_topology_set_stream." into 15
This commit is contained in:
@@ -398,8 +398,7 @@ int ast_stream_topology_set_stream(struct ast_stream_topology *topology,
|
|||||||
stream->position = position;
|
stream->position = position;
|
||||||
|
|
||||||
if (position == AST_VECTOR_SIZE(&topology->streams)) {
|
if (position == AST_VECTOR_SIZE(&topology->streams)) {
|
||||||
AST_VECTOR_APPEND(&topology->streams, stream);
|
return AST_VECTOR_APPEND(&topology->streams, stream);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return AST_VECTOR_REPLACE(&topology->streams, position, stream);
|
return AST_VECTOR_REPLACE(&topology->streams, position, stream);
|
||||||
|
|||||||
Reference in New Issue
Block a user