mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
Allocate twice the queue length for the ANC buffers in interlace modes
This commit is contained in:
parent
e8584abd4e
commit
18baa2a761
1 changed files with 8 additions and 2 deletions
|
@ -772,8 +772,14 @@ static gboolean gst_aja_src_start(GstAjaSrc *self) {
|
||||||
|
|
||||||
self->anc_buffer_pool = gst_buffer_pool_new();
|
self->anc_buffer_pool = gst_buffer_pool_new();
|
||||||
config = gst_buffer_pool_get_config(self->anc_buffer_pool);
|
config = gst_buffer_pool_get_config(self->anc_buffer_pool);
|
||||||
gst_buffer_pool_config_set_params(config, NULL, anc_buffer_size,
|
gst_buffer_pool_config_set_params(
|
||||||
self->queue_size, 0);
|
config, NULL, anc_buffer_size,
|
||||||
|
(self->configured_info.interlace_mode ==
|
||||||
|
GST_VIDEO_INTERLACE_MODE_PROGRESSIVE
|
||||||
|
? 1
|
||||||
|
: 2) *
|
||||||
|
self->queue_size,
|
||||||
|
0);
|
||||||
gst_buffer_pool_config_set_allocator(config, self->allocator, NULL);
|
gst_buffer_pool_config_set_allocator(config, self->allocator, NULL);
|
||||||
gst_buffer_pool_set_config(self->anc_buffer_pool, config);
|
gst_buffer_pool_set_config(self->anc_buffer_pool, config);
|
||||||
gst_buffer_pool_set_active(self->anc_buffer_pool, TRUE);
|
gst_buffer_pool_set_active(self->anc_buffer_pool, TRUE);
|
||||||
|
|
Loading…
Reference in a new issue