Commit 2f846d8c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

hotkeys: fix wall-paper toggling

parent ecbfb0f2
...@@ -369,10 +369,10 @@ static int PutAction( intf_thread_t *p_intf, int i_action ) ...@@ -369,10 +369,10 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
/* Playlist + video output actions */ /* Playlist + video output actions */
case ACTIONID_WALLPAPER: case ACTIONID_WALLPAPER:
{ /* FIXME: this is invalid if not using DirectX output!!! */ {
vlc_object_t *obj = p_vout ? VLC_OBJECT(p_vout) bool wp = var_ToggleBool( p_playlist, "video-wallpaper" );
: VLC_OBJECT(p_playlist); if( p_vout )
var_ToggleBool( obj, "video-wallpaper" ); var_SetBool( p_vout, "video-wallpaper", wp );
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment