<html><head></head><body>display->cfg belongs to another thread. This looks like UB to me.<br><br><div class="gmail_quote">Le 13 mai 2019 14:54:49 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">During initialization SizeWindow returns the size based on the initial sizes<br>forced by the user (or the visible source dimensions). But once the display is<br>created the width/height of the display is known/updated in the local config.<br><br>Same thing for the zoom which is used in vout_display_SizeWindow().<hr> src/video_output/video_output.c | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c<br>index 6e8c8608eb..8605ac2e0b 100644<br>--- a/src/video_output/video_output.c<br>+++ b/src/video_output/video_output.c<br>@@ -196,7 +196,7 @@ static void vout_SizeWindow(vout_thread_t *vout, unsigned *restrict width,<br>     /* If the vout thread is running, the window lock must be held here. */<br>     vout_display_SizeWindow(width, height, w, h, sar_num, sar_den,<br>                             sys->original.orientation,<br>-                            &sys->display_cfg);<br>+                            sys->display != NULL ? sys->display->cfg : &sys->display_cfg);<br> }<br> <br> static void vout_UpdateWindowSize(vout_thread_t *vout)</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>