diff options
-rw-r--r-- | main/stream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/stream.c b/main/stream.c index c233b2f34..61eef2504 100644 --- a/main/stream.c +++ b/main/stream.c @@ -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); |