diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 7dd862fab0..9eba369ee4 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -742,6 +742,10 @@ gst_v4l2_buffer_pool_start (GstBufferPool * bpool) GST_DEBUG_OBJECT (pool, "activating pool"); + if (pool->other_pool) + if (!gst_buffer_pool_set_active (pool->other_pool, TRUE)) + goto other_pool_failed; + config = gst_buffer_pool_get_config (bpool); if (!gst_buffer_pool_config_get_params (config, &caps, &size, &min_buffers, &max_buffers)) @@ -861,10 +865,6 @@ gst_v4l2_buffer_pool_start (GstBufferPool * bpool) pclass->set_config (bpool, config); gst_structure_free (config); - if (pool->other_pool) - if (!gst_buffer_pool_set_active (pool->other_pool, TRUE)) - goto other_pool_failed; - /* now, allocate the buffers: */ if (!pclass->start (bpool)) goto start_failed;