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
No related branches found
No related tags found
No related merge requests found
...@@ -415,8 +415,7 @@ int ast_stream_topology_set_stream(struct ast_stream_topology *topology, ...@@ -415,8 +415,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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment