[vlc-commits] vout: ignore vout_UpdateWindowSize() without a valid format

Thomas Guillem git at videolan.org
Fri May 3 11:56:18 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Apr 16 18:16:16 2019 +0200| [42563ca44843d1f348585ff91a881adddac3f35d] | committer: Thomas Guillem

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=42563ca44843d1f348585ff91a881adddac3f35d
---

 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