[vlc-commits] vout_wrapper: simplify the DrInit prototype

Steve Lhomme git at videolan.org
Fri Aug 17 11:07:02 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Aug 17 09:08:50 2018 +0200| [3648cf9d6e36d995ff32397d743b312fe4694daf] | committer: Steve Lhomme

vout_wrapper: simplify the DrInit prototype

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

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

diff --git a/src/video_output/vout_wrapper.c b/src/video_output/vout_wrapper.c
index 5f7fab68ed..88d22b42d7 100644
--- a/src/video_output/vout_wrapper.c
+++ b/src/video_output/vout_wrapper.c
@@ -98,10 +98,8 @@ void vout_CloseWrapper(vout_thread_t *vout, vout_display_state_t *state)
 /* Minimum number of display picture */
 #define DISPLAY_PICTURE_COUNT (1)
 
-static void NoDrInit(vout_thread_t *vout)
+static void NoDrInit(vout_thread_sys_t *sys)
 {
-    vout_thread_sys_t *sys = vout->p;
-
     if (sys->display.use_dr)
         sys->display_pool = vout_display_Pool(sys->display.vd, 3);
     else
@@ -151,7 +149,7 @@ int vout_InitWrapper(vout_thread_t *vout)
         } else {
             sys->dpb_size = picture_pool_GetSize(sys->decoder_pool) - reserved_picture;
         }
-        NoDrInit(vout);
+        NoDrInit(sys);
     }
     sys->private_pool = picture_pool_Reserve(sys->decoder_pool, private_picture);
     if (!sys->private_pool)
@@ -192,7 +190,7 @@ void vout_ManageWrapper(vout_thread_t *vout)
 
     if (reset_display_pool) {
         sys->display.use_dr = !vout_IsDisplayFiltered(vd);
-        NoDrInit(vout);
+        NoDrInit(sys);
     }
 }
 



More information about the vlc-commits mailing list