mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
d3d12: Suppress fence data object leak report
We don't release GstD3D12Device intentionally, thus a GstD3D12FenceDataPool owned by a device will not be released but that's expected leak. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7243>
This commit is contained in:
parent
9a8d7db5de
commit
4a6daad517
1 changed files with 5 additions and 1 deletions
|
@ -208,9 +208,13 @@ gst_d3d12_fence_data_pool_acquire (GstD3D12FenceDataPool * pool,
|
|||
}
|
||||
}
|
||||
|
||||
if (!new_data)
|
||||
if (!new_data) {
|
||||
new_data = gst_d3d12_fence_data_new ();
|
||||
|
||||
if (GST_OBJECT_FLAG_IS_SET (pool, GST_OBJECT_FLAG_MAY_BE_LEAKED))
|
||||
GST_MINI_OBJECT_FLAG_SET (new_data, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
}
|
||||
|
||||
new_data->pool = (GstD3D12FenceDataPool *) gst_object_ref (pool);
|
||||
new_data->dispose =
|
||||
(GstMiniObjectDisposeFunction) gst_d3d12_fence_data_dispose;
|
||||
|
|
Loading…
Reference in a new issue