mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
0d5c89a3b4
commit
12a2c1dffe
1 changed files with 0 additions and 15 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue