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:
parent
2a44248bcd
commit
5521af04f8
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user