[vlc-devel] [PATCH 37/41] direct3d11: inline the call to Manage()

Steve Lhomme robux4 at ycbcr.xyz
Fri Mar 22 16:14:15 CET 2019


---
 modules/video_output/win32/direct3d11.c | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 747634c34c..55a08696d3 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -224,19 +224,6 @@ static void UpdateSize(vout_display_t *vd)
     d3d11_device_unlock( &sys->d3d_dev );
 }
 
-static void Manage(vout_display_t *vd)
-{
-    vout_display_sys_t *sys = vd->sys;
-
-    CommonManage(vd, &sys->sys);
-
-    if ( sys->sys.area.rect_dest_changed )
-    {
-        UpdateSize(vd);
-        sys->sys.area.rect_dest_changed =false;
-    }
-}
-
 static bool Resize(void *opaque, unsigned i_width, unsigned i_height)
 {
     vout_display_t *vd = opaque;
@@ -299,7 +286,13 @@ static bool StartRendering(void *opaque)
     vout_display_t *vd = opaque;
     vout_display_sys_t *sys = vd->sys;
 
-    Manage(vd);
+    CommonManage(vd, &sys->sys);
+
+    if ( sys->sys.area.rect_dest_changed )
+    {
+        UpdateSize(vd);
+        sys->sys.area.rect_dest_changed =false;
+    }
 
     D3D11_ClearRenderTargets( &sys->d3d_dev, sys->display.pixelFormat, sys->swapchainTargetView );
     return true;
-- 
2.17.1



More information about the vlc-devel mailing list