vaapivideobufferpool: add explanation for allocator reconfig

This commit is contained in:
Víctor Manuel Jáquez Leal 2020-01-29 11:55:28 +01:00
parent 377dd0cc6c
commit 5eca31b5e8

View file

@ -194,6 +194,8 @@ gst_vaapi_video_buffer_pool_set_config (GstBufferPool * pool,
&& gst_video_info_changed (allocator_vinfo, &new_allocation_vinfo)) {
gst_object_replace ((GstObject **) & priv->allocator, NULL);
/* dmabuf allocator can change its parameters: no need to create a
* new one */
if (allocator && priv->use_dmabuf_memory) {
gst_allocator_set_vaapi_video_info (allocator, &new_allocation_vinfo,
surface_alloc_flags);