summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-01-29 11:55:28 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-02-02 17:22:43 +0100
commit5eca31b5e864157d7012d166cb5685a39cf2bc17 (patch)
tree4b5e72ecc36a93067efd5db5943229e6c3f9eb10
parent377dd0cc6c8afe90404fa4f8419fb79dc88d601b (diff)
vaapivideobufferpool: add explanation for allocator reconfig
-rw-r--r--gst/vaapi/gstvaapivideobufferpool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapivideobufferpool.c b/gst/vaapi/gstvaapivideobufferpool.c
index d6f47522..a331d4ff 100644
--- a/gst/vaapi/gstvaapivideobufferpool.c
+++ b/gst/vaapi/gstvaapivideobufferpool.c
@@ -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);