d3d11screencapturesrc: Fix build error with MSVC x86

Delete the code for now. Note that the code block is unnecessary already

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3375>
This commit is contained in:
Seungha Yang 2022-11-10 02:49:38 +09:00 committed by GStreamer Marge Bot
parent 0d5c89a3b4
commit 12a2c1dffe

View file

@ -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");