[vlc-commits] vout: remove constant parameter

Rémi Denis-Courmont git at videolan.org
Sat Jan 26 19:51:07 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 26 11:25:03 2019 +0200| [d5f926a9fb1ebddcb1808e7f2c5256c8d4e908ff] | committer: Rémi Denis-Courmont

vout: remove constant parameter

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

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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 63b4d35e05..db45547d66 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1610,7 +1610,7 @@ error:
     return VLC_EGENERIC;
 }
 
-static void ThreadStop(vout_thread_t *vout, vout_display_cfg_t *cfg)
+static void ThreadStop(vout_thread_t *vout)
 {
     if (vout->p->spu_blend)
         filter_DeleteBlend(vout->p->spu_blend);
@@ -1619,7 +1619,7 @@ static void ThreadStop(vout_thread_t *vout, vout_display_cfg_t *cfg)
     if (vout->p->display) {
         if (vout->p->decoder_pool)
             ThreadFlush(vout, true, INT64_MAX);
-        vout_CloseWrapper(vout, cfg);
+        vout_CloseWrapper(vout, NULL);
     }
 
     /* Destroy the video filters */
@@ -1670,9 +1670,9 @@ static int ThreadReinit(vout_thread_t *vout,
         msg_Warn(vout, "DPB need to be increased");
     }
 
-    vout_display_cfg_t dcfg = { };
+    vout_display_cfg_t dcfg;
 
-    ThreadStop(vout, NULL);
+    ThreadStop(vout);
 
     vout_ReinitInterlacingSupport(vout);
 
@@ -1705,7 +1705,7 @@ static int ThreadControl(vout_thread_t *vout, vout_control_cmd_t cmd)
 {
     switch(cmd.type) {
     case VOUT_CONTROL_CLEAN:
-        ThreadStop(vout, NULL);
+        ThreadStop(vout);
         return 1;
     case VOUT_CONTROL_REINIT:
         if (ThreadReinit(vout, cmd.cfg))



More information about the vlc-commits mailing list