<html><head></head><body>Nit in title.<br><br>But more importantly, I don't understand how it works if the display is (supposed to be) embedded? If it creates its own window unilaterally, then won't it always be non-embedded?<br><br><div class="gmail_quote">Le 25 février 2019 13:01:12 GMT+02: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">This way the matching vout_window_operations are used.<br><br>Fixes a crash when using OpenGL on windows.<hr>Replaces <a href="https://patches.videolan.org/patch/22634/">https://patches.videolan.org/patch/22634/</a><hr> modules/video_output/win32/glwin32.c | 11 ++++++-----<br> 1 file changed, 6 insertions(+), 5 deletions(-)<br><br>diff --git a/modules/video_output/win32/glwin32.c b/modules/video_output/win32/glwin32.c<br>index e654455633..0c39fa721e 100644<br>--- a/modules/video_output/win32/glwin32.c<br>+++ b/modules/video_output/win32/glwin32.c<br>@@ -127,16 +127,17 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,<br>     if (!sys->sys.b_windowless)<br>         EventThreadUpdateTitle(sys->sys.event, VOUT_TITLE " (OpenGL output)");<br> <br>-    vout_window_t *surface = EmbedVideoWindow_Create(vd);<br>-    if (!surface)<br>+    vout_display_cfg_t embed_cfg = *cfg;<br>+    embed_cfg.window = EmbedVideoWindow_Create(vd);<br>+    if (!embed_cfg.window)<br>         goto error;<br> <br>-    char *modlist = var_InheritString(surface, "gl");<br>-    sys->gl = vlc_gl_Create(cfg, VLC_OPENGL, modlist);<br>+    char *modlist = var_InheritString(embed_cfg.window, "gl");<br>+    sys->gl = vlc_gl_Create(&embed_cfg, VLC_OPENGL, modlist);<br>     free(modlist);<br>     if (!sys->gl)<br>     {<br>-        vlc_object_release(surface);<br>+        vlc_object_release(embed_cfg.window);<br>         goto error;<br>     }<br> </pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>