[vlc-commits] direct3d11: inline the call to Manage()

Steve Lhomme git at videolan.org
Mon Apr 1 12:03:49 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 22 14:39:14 2019 +0100| [f094e7239b8b8773cfd3e0ea5d181249f01e3bd9] | committer: Steve Lhomme

direct3d11: inline the call to Manage()

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

 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 915c5d5a94..b4b4c925e8 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -227,19 +227,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.rect_dest_changed )
-    {
-        UpdateSize(vd);
-        sys->sys.rect_dest_changed =false;
-    }
-}
-
 static bool Resize(void *opaque, unsigned i_width, unsigned i_height)
 {
     vout_display_t *vd = opaque;
@@ -302,7 +289,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.rect_dest_changed )
+    {
+        UpdateSize(vd);
+        sys->sys.rect_dest_changed =false;
+    }
 
     D3D11_ClearRenderTargets( &sys->d3d_dev, sys->display.pixelFormat, sys->swapchainTargetView );
     return true;



More information about the vlc-commits mailing list