[vlc-commits] vout: ignore vout_UpdateWindowSize() without a valid format
Thomas Guillem
git at videolan.org
Fri May 3 13:50:19 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Apr 16 18:16:16 2019 +0200| [4486fb0276f0ad82f9a7090a20b788f11127968e] | committer: Francois Cartegnie
vout: ignore vout_UpdateWindowSize() without a valid format
This fixes assert triggered from vout_SizeWindow() when the fullscreen state is
changed while the vout is not started.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4486fb0276f0ad82f9a7090a20b788f11127968e
---
src/video_output/video_output.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 5681acb9aa..b64c35bdec 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -203,6 +203,9 @@ static void vout_UpdateWindowSize(vout_thread_t *vout)
vlc_mutex_assert(&vout->p->window_lock);
+ if (vout->p->original.i_chroma == 0)
+ return;
+
vout_SizeWindow(vout, &width, &height);
msg_Dbg(vout, "requested window size: %ux%u", width, height);
vout_window_SetSize(vout->p->display_cfg.window, width, height);
More information about the vlc-commits
mailing list