Commit 9b8d88b9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

playlist: allow video-on-top variable to be preserved across vouts

parent 4fa9064c
......@@ -322,6 +322,7 @@ static void VariablesInit( playlist_t *p_playlist )
/* Variables to preserve video output parameters */
var_Create( p_playlist, "fullscreen", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_Create( p_playlist, "video-on-top", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
/* Audio output parameters */
var_Create( p_playlist, "volume-muted", VLC_VAR_BOOL );
......
......@@ -966,10 +966,6 @@ static int OnTopCallback( vlc_object_t *p_this, char const *psz_cmd,
p_vout->b_on_top = newval.b_bool;
vlc_mutex_unlock( &p_vout->change_lock );
/* Modify libvlc as well because the vout might have to be restarted */
var_Create( p_vout->p_libvlc, "video-on-top", VLC_VAR_BOOL );
var_Set( p_vout->p_libvlc, "video-on-top", newval );
(void)psz_cmd; (void)oldval; (void)p_data;
return VLC_SUCCESS;
}
......
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