Skip to content
Snippets Groups Projects
Commit b7f64c30 authored by Jenkins2's avatar Jenkins2 Committed by Gerrit Code Review
Browse files

Merge "stream: Return error from ast_stream_topology_set_stream."

parents d91d0e99 fb188951
Branches
Tags
Loading
......@@ -415,8 +415,7 @@ int ast_stream_topology_set_stream(struct ast_stream_topology *topology,
stream->position = position;
if (position == AST_VECTOR_SIZE(&topology->streams)) {
AST_VECTOR_APPEND(&topology->streams, stream);
return 0;
return AST_VECTOR_APPEND(&topology->streams, stream);
}
return AST_VECTOR_REPLACE(&topology->streams, position, stream);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment