[vlc-devel] [PATCH] vout: Update vlc_player_vout_SetVar to fix fullscreen toggle hotkey
vvaakshay at gmail.com
vvaakshay at gmail.com
Wed Jan 8 19:50:40 CET 2020
From: akshayaky <akymaster007 at gmail.com>
this commit fixes:
-the fullscreen hotkey not exiting fullscreen
-wallpaper mode hotkey not disabling wallpaper mode
this commit issue #22418
---
src/player/vout.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/player/vout.c b/src/player/vout.c
index b28599288f..4ba7b1c89c 100644
--- a/src/player/vout.c
+++ b/src/player/vout.c
@@ -157,9 +157,16 @@ static void
vlc_player_vout_SetVar(vlc_player_t *player, const char *name, int type,
vlc_value_t val)
{
- vout_thread_t *vout = vlc_player_vout_Hold(player);
- var_SetChecked(vout, name, type, val);
- vout_Release(vout);
+ var_SetChecked(player, name, type, val);
+
+ size_t count;
+ vout_thread_t **vouts = vlc_player_vout_HoldAll(player, &count);
+ for (size_t i = 0; i < count; i++)
+ {
+ var_SetChecked(vouts[i], name, type, val);
+ vout_Release(vouts[i]);
+ }
+ free(vouts);
}
--
2.17.1
More information about the vlc-devel
mailing list