[vlc-commits] d3d11_swapchain: fix double d3d11_decoder_device_t free

Steve Lhomme git at videolan.org
Wed Feb 12 16:44:43 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 12 16:30:29 2020 +0100| [3d76ed5fadbed7c5f8bd9faeb81e61a57c149442] | committer: Steve Lhomme

d3d11_swapchain: fix double d3d11_decoder_device_t free

We don't create it here. There's no reason to release it here.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d76ed5fadbed7c5f8bd9faeb81e61a57c149442
---

 modules/video_output/win32/d3d11_swapchain.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/video_output/win32/d3d11_swapchain.c b/modules/video_output/win32/d3d11_swapchain.c
index bb4206f496..2360854bd3 100644
--- a/modules/video_output/win32/d3d11_swapchain.c
+++ b/modules/video_output/win32/d3d11_swapchain.c
@@ -50,7 +50,6 @@
 
 #include "d3d11_swapchain.h"
 #include "d3d11_shaders.h"
-#include "../../video_chroma/d3d9_fmt.h"
 
 typedef enum video_color_axis {
     COLOR_AXIS_RGB,
@@ -453,8 +452,6 @@ void LocalSwapchainCleanupDevice( void *opaque )
         IDXGISwapChain_Release(display->dxgiswapChain);
         display->dxgiswapChain = NULL;
     }
-
-    D3D11_ReleaseDevice( display->d3d_dev );
 }
 
 void LocalSwapchainSwap( void *opaque )



More information about the vlc-commits mailing list