[vlc-commits] video output: use sys instead of vout->p when available

Steve Lhomme git at videolan.org
Tue Nov 5 16:05:39 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul 11 13:44:03 2019 +0200| [4f11b2882896cc4b8414f3f52cc80198241d8c48] | committer: Steve Lhomme

video output: use sys instead of vout->p when available

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

 src/video_output/video_output.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 8aa527120c..dc093e5f95 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -210,7 +210,7 @@ static void vout_UpdateWindowSizeLocked(vout_thread_t *vout)
         vlc_mutex_unlock(&sys->display_lock);
 
         msg_Dbg(vout, "requested window size: %ux%u", width, height);
-        vout_window_SetSize(vout->p->display_cfg.window, width, height);
+        vout_window_SetSize(sys->display_cfg.window, width, height);
     } else
         vlc_mutex_unlock(&sys->display_lock);
 }
@@ -401,7 +401,8 @@ void vout_ChangeWindowed(vout_thread_t *vout)
 {
     assert(!vout->p->dummy);
     vlc_mutex_lock(&vout->p->window_lock);
-    vout_window_UnsetFullScreen(vout->p->display_cfg.window);
+    vout_thread_sys_t *sys = vout->p;
+    vout_window_UnsetFullScreen(sys->display_cfg.window);
     /* Attempt to reset the intended window size */
     vout_UpdateWindowSizeLocked(vout);
     vlc_mutex_unlock(&vout->p->window_lock);



More information about the vlc-commits mailing list