Commit 633d7e71 authored by Thomas Guillem's avatar Thomas Guillem

vout: don't drop window size when there is no display plugins yet

This fixes the window size that was ignored when the size was updated from the
open callback of the window plugin.

Fixes #22674
parent e8ef43a6
......@@ -424,7 +424,13 @@ void vout_ChangeDisplaySize(vout_thread_t *vout,
assert(!sys->dummy);
/* DO NOT call this outside the vout window callbacks */
vlc_mutex_lock(&sys->window_lock);
sys->display_cfg.display.width = width;
sys->display_cfg.display.height = height;
vlc_mutex_lock(&sys->display_lock);
vlc_mutex_unlock(&sys->window_lock);
if (sys->display != NULL)
vout_display_SetSize(sys->display, width, height);
vlc_mutex_unlock(&sys->display_lock);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment