From 96923c4fa22089c04625b2f74003c8f7f61bf5cf Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Mon, 18 Jan 2021 20:28:14 +0900 Subject: [PATCH] d3d11videosink: Fix MSVC build warnings around UWP code gstd3d11window_corewindow.cpp(408): warning C4189: 'storage': local variable is initialized but not referenced gstd3d11window_corewindow.cpp(490): warning C4189: 'self': local variable is initialized but not referenced gstd3d11window_swapchainpanel.cpp(481): warning C4189: 'self': local variable is initialized but not referenced Part-of: --- sys/d3d11/gstd3d11window_corewindow.cpp | 3 --- sys/d3d11/gstd3d11window_swapchainpanel.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/sys/d3d11/gstd3d11window_corewindow.cpp b/sys/d3d11/gstd3d11window_corewindow.cpp index cc479b1a4e..4fab02108d 100644 --- a/sys/d3d11/gstd3d11window_corewindow.cpp +++ b/sys/d3d11/gstd3d11window_corewindow.cpp @@ -405,7 +405,6 @@ gst_d3d11_window_core_window_create_swap_chain (GstD3D11Window * window, IDXGISwapChain ** swap_chain) { GstD3D11WindowCoreWindow *self = GST_D3D11_WINDOW_CORE_WINDOW (window); - CoreWindowWinRTStorage *storage = self->storage; ComPtr new_swapchain; GstD3D11Device *device = window->device; DXGI_SWAP_CHAIN_DESC1 desc1 = { 0, }; @@ -487,8 +486,6 @@ gst_d3d11_window_core_window_unlock_stop (GstD3D11Window * window) static void gst_d3d11_window_core_window_update_swap_chain (GstD3D11Window * window) { - GstD3D11WindowCoreWindow *self = GST_D3D11_WINDOW_CORE_WINDOW (window); - gst_d3d11_window_core_window_on_resize (window, window->surface_width, window->surface_height); diff --git a/sys/d3d11/gstd3d11window_swapchainpanel.cpp b/sys/d3d11/gstd3d11window_swapchainpanel.cpp index b5ebae2809..c0c1977b22 100644 --- a/sys/d3d11/gstd3d11window_swapchainpanel.cpp +++ b/sys/d3d11/gstd3d11window_swapchainpanel.cpp @@ -478,9 +478,6 @@ gst_d3d11_window_swap_chain_panel_unlock_stop (GstD3D11Window * window) static void gst_d3d11_window_swap_chain_panel_update_swap_chain (GstD3D11Window * window) { - GstD3D11WindowSwapChainPanel *self = - GST_D3D11_WINDOW_SWAP_CHAIN_PANEL (window); - gst_d3d11_window_swap_chain_panel_on_resize (window, window->surface_width, window->surface_height);