[vlc-commits] player: vout: fix fullscreen/wallpaper toggle
akshayaky
git at videolan.org
Wed Jan 15 10:13:44 CET 2020
vlc | branch: master | akshayaky <akymaster007 at gmail.com> | Tue Jan 14 21:48:13 2020 +0530| [69ea81b26039d2fa3d552908cdf0a3d5feee25c9] | 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=69ea81b26039d2fa3d552908cdf0a3d5feee25c9
---
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