[vlc-commits] hotkeys: fix wall-paper toggling
Rémi Denis-Courmont
git at videolan.org
Sun Jan 5 11:18:59 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 5 12:14:51 2014 +0200| [d12a101eb37b55ac485c748e02cab7401851c724] | committer: Rémi Denis-Courmont
hotkeys: fix wall-paper toggling
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d12a101eb37b55ac485c748e02cab7401851c724
---
modules/control/hotkeys.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index ec21bec..f889705 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -369,10 +369,10 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
/* Playlist + video output actions */
case ACTIONID_WALLPAPER:
- { /* FIXME: this is invalid if not using DirectX output!!! */
- vlc_object_t *obj = p_vout ? VLC_OBJECT(p_vout)
- : VLC_OBJECT(p_playlist);
- var_ToggleBool( obj, "video-wallpaper" );
+ {
+ bool wp = var_ToggleBool( p_playlist, "video-wallpaper" );
+ if( p_vout )
+ var_SetBool( p_vout, "video-wallpaper", wo );
break;
}
More information about the vlc-commits
mailing list