d3d12memory: Allow set_fence() only against writable memory

Setting a fence to memory should only be allowed on the side
that modified that memory or has the right to modify it

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9075>
This commit is contained in:
Seungha Yang 2025-05-26 17:20:05 +09:00 committed by GStreamer Marge Bot
parent 2a44248bcd
commit 5521af04f8

View File

@ -1071,6 +1071,7 @@ gst_d3d12_memory_set_fence (GstD3D12Memory * mem, ID3D12Fence * fence,
guint64 fence_value, gboolean wait)
{
g_return_if_fail (gst_is_d3d12_memory (GST_MEMORY_CAST (mem)));
g_return_if_fail (gst_mini_object_is_writable ((GstMiniObject *) mem));
auto priv = mem->priv;