mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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.
This commit is contained in:
parent
96fdc3d322
commit
dd428cc4a1
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue