Merge "stream: Return error from ast_stream_topology_set_stream."

pull/9/head
Jenkins2 8 years ago committed by Gerrit Code Review
commit b7f64c30e2

@ -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);

Loading…
Cancel
Save