min = max = 0;
}
+ config = NULL;
if (!pool) {
pool = gst_vaapi_video_buffer_pool_new (plugin->display);
if (!pool)
gst_buffer_pool_config_set_params (config, caps, size, min, max);
gst_buffer_pool_config_add_option (config,
GST_BUFFER_POOL_OPTION_VAAPI_VIDEO_META);
- if (!gst_buffer_pool_set_config (pool, config))
- goto error_config_failed;
}
- config = gst_buffer_pool_get_config (pool);
+ if (!config)
+ config = gst_buffer_pool_get_config (pool);
/* Check whether GstVideoMeta, or GstVideoAlignment, is needed (raw video) */
if (has_video_meta) {