[vlc-commits] player: vout: fix fullscreen/wallpaper toggle

Akshay V git at videolan.org
Wed Jan 15 10:26:56 CET 2020


vlc | branch: master | Akshay V <vvaakshay at gmail.com> | Tue Jan 14 21:48:13 2020 +0530| [c9c0070059eef7404293d1625701d3f3d8eed805] | committer: Thomas Guillem

player: vout: fix fullscreen/wallpaper toggle

This commit fixes:
 - The fullscreen hotkey not exiting fullscreen
 - Wallpaper mode hotkey not disabling wallpaper mode

Fixes #22418

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c9c0070059eef7404293d1625701d3f3d8eed805
---

 src/player/vout.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/player/vout.c b/src/player/vout.c
index b28599288f..4bb6412c91 100644
--- a/src/player/vout.c
+++ b/src/player/vout.c
@@ -100,7 +100,10 @@ vlc_player_vout_RemoveListener(vlc_player_t *player,
 bool
 vlc_player_vout_IsFullscreen(vlc_player_t *player)
 {
-    return var_GetBool(player, "fullscreen");
+    vout_thread_t *vout = vlc_player_vout_Hold(player);
+    bool fs =  var_GetBool(vout, "fullscreen");
+    vout_Release(vout);
+    return fs;
 }
 
 static int
@@ -185,7 +188,10 @@ vlc_player_vout_SetFullscreen(vlc_player_t *player, bool enabled)
 bool
 vlc_player_vout_IsWallpaperModeEnabled(vlc_player_t *player)
 {
-    return var_GetBool(player, "video-wallpaper");
+    vout_thread_t *vout = vlc_player_vout_Hold(player);
+    bool wm =  var_GetBool(vout, "video-wallpaper");
+    vout_Release(vout);
+    return wm;
 }
 
 void



More information about the vlc-commits mailing list