mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
Only allocate VANC buffer pool if the device supports extraction
This commit is contained in:
parent
e2e54c3631
commit
2b4e0f7ece
1 changed files with 4 additions and 2 deletions
|
@ -790,7 +790,8 @@ static gboolean gst_aja_src_start(GstAjaSrc *self) {
|
|||
|
||||
guint anc_buffer_size = 8 * 1024;
|
||||
|
||||
if (self->vanc_mode == ::NTV2_VANCMODE_OFF) {
|
||||
if (self->vanc_mode == ::NTV2_VANCMODE_OFF &&
|
||||
::NTV2DeviceCanDoCustomAnc(self->device_id)) {
|
||||
self->anc_buffer_pool = gst_buffer_pool_new();
|
||||
config = gst_buffer_pool_get_config(self->anc_buffer_pool);
|
||||
gst_buffer_pool_config_set_params(
|
||||
|
@ -1304,7 +1305,8 @@ restart:
|
|||
break;
|
||||
}
|
||||
|
||||
if (self->vanc_mode == ::NTV2_VANCMODE_OFF) {
|
||||
if (self->vanc_mode == ::NTV2_VANCMODE_OFF &&
|
||||
::NTV2DeviceCanDoCustomAnc(self->device_id)) {
|
||||
if (gst_buffer_pool_acquire_buffer(self->anc_buffer_pool, &anc_buffer,
|
||||
NULL) != GST_FLOW_OK) {
|
||||
gst_buffer_unref(audio_buffer);
|
||||
|
|
Loading…
Reference in a new issue