[vlc-devel] [PATCH 3/3] vout: don't drop window size when there is no display plugins yet
Thomas Guillem
thomas at gllm.fr
Fri Nov 8 11:56:17 CET 2019
This fixes the window size that was ignored when the size was updated from the
open callback of the window plugin.
Fixes #22674
---
src/video_output/video_output.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index db48538fd9c..ff36250d23d 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -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);
--
2.20.1
More information about the vlc-devel
mailing list