diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-01-27 18:10:18 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-02-23 13:12:15 +0100 |
commit | dd428cc4a12c2d5c694fcd3303811cf486002c9d (patch) | |
tree | 3ae5f28277f0c3c097871265130295668df61c12 /gst | |
parent | 96fdc3d322c7bf083a1411879863e1717ff2fc32 (diff) |
vaapivideomemory: Store surface allocation flags.
Store surface allocation flags passed to the vaapi allocator in
GObject's qdata, because it might be used by the vaapivideobufferpool
when recreating the allocator given any resolution change.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/vaapi/gstvaapivideomemory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c index 92e7fe9f..c92a418a 100644 --- a/gst/vaapi/gstvaapivideomemory.c +++ b/gst/vaapi/gstvaapivideomemory.c @@ -987,6 +987,9 @@ gst_vaapi_video_allocator_new (GstVaapiDisplay * display, return NULL; } + gst_allocator_set_vaapi_video_info (GST_ALLOCATOR_CAST (allocator), + alloc_info, surface_alloc_flags); + return GST_ALLOCATOR_CAST (allocator); } |