1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
From 71bfbbf598d060e0cbbc45c518c9c003f76b5334 Mon Sep 17 00:00:00 2001
From: Seungha Yang <seungha@centricular.com>
Date: Thu, 10 Nov 2022 02:49:38 +0900
Subject: [PATCH] d3d11screencapturesrc: Fix build error with MSVC x86
Delete the code for now. Note that the code block is unnecessary already
---
.../sys/d3d11/gstd3d11winrtcapture.cpp | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/sys/d3d11/gstd3d11winrtcapture.cpp b/sys/d3d11/gstd3d11winrtcapture.cpp
index 3c2c2cbd7eb..4c876f36cf0 100644
--- a/sys/d3d11/gstd3d11winrtcapture.cpp
+++ b/sys/d3d11/gstd3d11winrtcapture.cpp
@@ -122,9 +122,6 @@ struct GstD3D11WinRTCaptureInner
{
~GstD3D11WinRTCaptureInner()
{
- if (item)
- item->remove_Closed (closed_token);
-
CLOSE_COM (session);
CLOSE_COM (pool);
CLOSE_COM (item);
@@ -144,7 +141,6 @@ struct GstD3D11WinRTCaptureInner
ComPtr < IGraphicsCaptureItem > item;
ComPtr < IDirect3D11CaptureFramePool > pool;
ComPtr < IGraphicsCaptureSession > session;
- EventRegistrationToken closed_token;
bool closed = false;
};
@@ -441,17 +437,6 @@ gst_d3d11_winrt_configure (GstD3D11WinRTCapture * self)
goto error;
}
- {
- /* FIXME: This callback does not work for some reasons */
- auto closed_handler = Callback < ITypedEventHandler < GraphicsCaptureItem *,
- IInspectable * >>(inner, &GstD3D11WinRTCaptureInner::OnClosed);
- hr = inner->item->add_Closed (closed_handler.Get (), &inner->closed_token);
- if (!gst_d3d11_result (hr, self->device)) {
- GST_ERROR_OBJECT (self, "Could not install closed callback");
- goto error;
- }
- }
-
hr = device_handle->QueryInterface (IID_PPV_ARGS (&dxgi_device));
if (!gst_d3d11_result (hr, device)) {
GST_WARNING_OBJECT (self, "IDXGIDevice is not available");
--
GitLab
|