mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
vaapivideomemory: destroy derived image at unmap
If the allocator was configured to use direct upload or rendering, the generated derived image created at mapping needs to be destroyed after unmapping, because, in order to process the surface, it should not be marked as "busy" by the driver.
This commit is contained in:
parent
ce8b14858f
commit
2761e472af
1 changed files with 5 additions and 0 deletions
|
@ -325,6 +325,11 @@ gst_video_meta_unmap_vaapi_memory (GstVideoMeta * meta, guint plane,
|
|||
GST_VAAPI_VIDEO_MEMORY_FLAG_SET (mem,
|
||||
GST_VAAPI_VIDEO_MEMORY_FLAG_IMAGE_IS_CURRENT);
|
||||
}
|
||||
|
||||
if (!use_native_formats (mem->usage_flag)) {
|
||||
gst_vaapi_video_meta_set_image (mem->meta, NULL);
|
||||
gst_vaapi_video_memory_reset_image (mem);
|
||||
}
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue