[vlc-commits] vout: initialize window state (above or below) straight away

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


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

vout: initialize window state (above or below) straight away

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

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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index f928a77..5d93e92 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -174,7 +174,15 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
             .height = cfg->fmt->i_visible_height,
         };
 
-        vout->p->window = vout_display_window_New(vout, &wcfg);
+        vout_window_t *window = vout_display_window_New(vout, &wcfg);
+        if (window != NULL)
+        {
+            if (var_InheritBool(vout, "video-wallpaper"))
+                vout_window_SetState(window, VOUT_WINDOW_STATE_BELOW);
+            else if (var_InheritBool(vout, "video-on-top"))
+                vout_window_SetState(window, VOUT_WINDOW_STATE_ABOVE);
+        }
+        vout->p->window = window;
     } else
         vout->p->window = NULL;
 



More information about the vlc-commits mailing list