<html><head></head><body>Doesn't this crash if there's no vout for whatever reason (such as headless)?<br><br><div class="gmail_quote">Le 11 janvier 2020 00:40:01 GMT+09:00, vvaakshay@gmail.com 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">From: akshayaky <akymaster007@gmail.com><br><br>now the player returns state of the first vout instead of player state<br><br>this commit fixes:<br> -the fullscreen hotkey not exiting fullscreen<br> -wallpaper mode hotkey not disabling wallpaper mode<br><br>this commit fixes issue #22418<hr> src/player/vout.c | 6 ++++--<br> 1 file changed, 4 insertions(+), 2 deletions(-)<br><br>diff --git a/src/player/vout.c b/src/player/vout.c<br>index b28599288f..a8af445026 100644<br>--- a/src/player/vout.c<br>+++ b/src/player/vout.c<br>@@ -100,7 +100,8 @@ vlc_player_vout_RemoveListener(vlc_player_t *player,<br> bool<br> vlc_player_vout_IsFullscreen(vlc_player_t *player)<br> {<br>- return var_GetBool(player, "fullscreen");<br>+ vout_thread_t *vout = vlc_player_vout_Hold(player);<br>+ return var_GetBool(vout, "fullscreen");<br> }<br> <br> static int<br>@@ -185,7 +186,8 @@ vlc_player_vout_SetFullscreen(vlc_player_t *player, bool enabled)<br> bool<br> vlc_player_vout_IsWallpaperModeEnabled(vlc_player_t *player)<br> {<br>- return var_GetBool(player, "video-wallpaper");<br>+ vout_thread_t *vout = vlc_player_vout_Hold(player);<br>+ return var_GetBool(vout, "fullscreen");<br> }<br> <br> void</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>