[vlc-commits] display: do not set size of non-existent window

Rémi Denis-Courmont git at videolan.org
Tue Aug 28 15:40:01 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 28 16:38:48 2018 +0300| [4ea647b652303ebecf063d3dc32bf8797e107121] | committer: Rémi Denis-Courmont

display: do not set size of non-existent window

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

 src/video_output/display.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index b0c0fdbb3e..d23e757619 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -109,11 +109,13 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
             vlc_object_release(vd);
             return NULL;
         }
+
+        vout_window_SetSize(cfg->window,
+                            cfg->display.width, cfg->display.height);
     } else {
         vd->module = NULL;
     }
 
-    vout_window_SetSize(cfg->window, cfg->display.width, cfg->display.height);
     return vd;
 }
 



More information about the vlc-commits mailing list