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 )
/* 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", wp );
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