mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
v4l2bufferpool: Activate the other pool first
This change has no effect. We will need to acquire a buffer from the pool later in order to validate / adapt with the video alignment for the downstream buffers. https://bugzilla.gnome.org/show_bug.cgi?id=583890
This commit is contained in:
parent
fe3a70fefd
commit
90a70e08b7
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue