From 7afa91405463ebc4ada98ff354bf7b3a7a54567d Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 15 Dec 2023 19:18:02 +0900 Subject: [PATCH] d3d12fence: Reset fence after waiting done Part-of: --- subprojects/gst-plugins-bad/sys/d3d12/gstd3d12fence.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12fence.cpp b/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12fence.cpp index e5c63b8325..0e693d4348 100644 --- a/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12fence.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12fence.cpp @@ -157,6 +157,9 @@ gst_d3d12_fence_wait_for (GstD3D12Fence * fence, guint timeout_ms) GST_TRACE ("target %" G_GUINT64_FORMAT " <= target: %" G_GUINT64_FORMAT, priv->value, current); } + + priv->value = 0; + priv->fence->Signal (0); } void