[vlc-commits] vout: kva: refactor for next changes

Steve Lhomme git at videolan.org
Tue Nov 27 15:48:59 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Nov 13 10:32:03 2018 +0100| [6a6ac5e48a75054eba971a11adc18b04c9e28d7f] | committer: Steve Lhomme

vout: kva: refactor for next changes

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

 modules/video_output/kva.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index 1cb5417ed4..cf20a200a0 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -146,6 +146,8 @@ static void PMThread( void *arg )
 {
     vout_display_t *vd = ( vout_display_t * )arg;
     vout_display_sys_t * sys = vd->sys;
+    const vout_display_cfg_t * cfg = vd->cfg;
+    video_format_t *fmtp = &vd->fmt;
     ULONG i_frame_flags;
     QMSG qm;
     char *psz_mode;
@@ -153,7 +155,7 @@ static void PMThread( void *arg )
 
     /* */
     video_format_t fmt;
-    video_format_ApplyRotation(&fmt, &vd->fmt);
+    video_format_ApplyRotation(&fmt, fmtp);
 
     /* */
     vout_display_info_t info = vd->info;
@@ -256,14 +258,14 @@ static void PMThread( void *arg )
         goto exit_open_display;
     }
 
-    if( vd->cfg->is_fullscreen && !sys->parent_window )
+    if( cfg->is_fullscreen && !sys->parent_window )
         WinPostMsg( sys->client, WM_VLC_FULLSCREEN_CHANGE,
                     MPFROMLONG( true ), 0 );
 
     kvaDisableScreenSaver();
 
     /* Setup vout_display now that everything is fine */
-    vd->fmt     = fmt;
+    *fmtp       = fmt;
     vd->info    = info;
 
     vd->pool    = Pool;



More information about the vlc-commits mailing list