[vlc-commits] vout: compute correct initial window size

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


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

vout: compute correct initial window size

Refs #21108, fixes #12284.

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

 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 877e000c8e..8a646ba98b 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -285,10 +285,11 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
         .x = var_InheritInteger(vout, "video-x"),
         .y = var_InheritInteger(vout, "video-y"),
 #endif
-        .width = cfg->fmt->i_visible_width,
-        .height = cfg->fmt->i_visible_height,
     };
 
+    vout_display_window_GetSize(VLC_OBJECT(vout), cfg->fmt,
+                                &wcfg.width, &wcfg.height);
+
     if (sys->window != NULL && vout_window_Enable(sys->window, &wcfg)) {
         vout_display_window_Delete(sys->window);
         sys->window = NULL;



More information about the vlc-commits mailing list