Commit f7f1b5f3 authored by Rémi Duraffort's avatar Rémi Duraffort

liblc_video: use var_ToggleBool when applicable.

parent f6357388
...@@ -97,13 +97,11 @@ void libvlc_toggle_fullscreen( libvlc_media_player_t *p_mi, ...@@ -97,13 +97,11 @@ void libvlc_toggle_fullscreen( libvlc_media_player_t *p_mi,
{ {
/* We only work on the first vout */ /* We only work on the first vout */
vout_thread_t *p_vout = GetVout( p_mi, p_e ); vout_thread_t *p_vout = GetVout( p_mi, p_e );
bool ret;
/* GetVout will raise the exception for us */ /* GetVout will raise the exception for us */
if( !p_vout ) return; if( !p_vout ) return;
ret = var_GetBool( p_vout, "fullscreen" ); var_ToggleBool( p_vout, "fullscreen" );
var_SetBool( p_vout, "fullscreen", !ret );
vlc_object_release( p_vout ); vlc_object_release( p_vout );
} }
......
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