mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
vkswapper: keep a reference on the input buffer until present is finished
Otherwise, there may be a very small period of time where the buffer can be freed while being presented.
This commit is contained in:
parent
96a407334d
commit
bd31caf0b0
1 changed files with 3 additions and 0 deletions
|
@ -1338,6 +1338,9 @@ reacquire:
|
|||
|
||||
gst_vulkan_trash_list_add (priv->trash_list,
|
||||
gst_vulkan_trash_new_free_semaphore (fence, present_semaphore));
|
||||
gst_vulkan_trash_list_add (priv->trash_list,
|
||||
gst_vulkan_trash_new_mini_object_unref (fence,
|
||||
(GstMiniObject *) gst_buffer_ref (buffer)));
|
||||
gst_vulkan_fence_unref (fence);
|
||||
fence = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue