[vlc-commits] vout: remove duplicated on-top and wallpaper variables creation

Rémi Denis-Courmont git at videolan.org
Thu Oct 16 19:26:07 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 13 18:31:29 2014 +0300| [5da03f41100b33779ab2b23a8e6012dfae28ce56] | committer: Rémi Denis-Courmont

vout: remove duplicated on-top and wallpaper variables creation

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

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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index cf6f369..b73ddd8 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1351,12 +1351,11 @@ static int ThreadStart(vout_thread_t *vout, const vout_display_state_t *state)
 
     vout_display_state_t state_default;
     if (!state) {
-        var_Create(vout, "video-wallpaper", VLC_VAR_BOOL|VLC_VAR_DOINHERIT);
         VoutGetDisplayCfg(vout, &state_default.cfg, vout->p->display.title);
 
 #if defined(_WIN32) || defined(__OS2__)
         bool below = var_InheritBool(vout, "video-wallpaper");
-        bool above = var_CreateGetBool(vout, "video-on-top");
+        bool above = var_InheritBool(vout, "video-on-top");
 
         state_default.wm_state = below ? VOUT_WINDOW_STATE_BELOW
                                : above ? VOUT_WINDOW_STATE_ABOVE



More information about the vlc-commits mailing list