diff --git a/src/arvgentlstream.c b/src/arvgentlstream.c index 38adff821..432db8528 100644 --- a/src/arvgentlstream.c +++ b/src/arvgentlstream.c @@ -693,7 +693,7 @@ arv_gentl_stream_create_buffers (ArvStream *stream, guint n_buffers, size_t size arv_stream_push_buffer (stream, buffer); } - return gc_error = GC_ERR_SUCCESS; + return gc_error == GC_ERR_SUCCESS; } /** diff --git a/src/arvstream.c b/src/arvstream.c index 65ae8bb9f..99ad41f83 100644 --- a/src/arvstream.c +++ b/src/arvstream.c @@ -757,7 +757,6 @@ arv_stream_create_buffers (ArvStream *stream, unsigned int n_buffers, } } - return success; }