[vlc-devel] commit: liblc_video: use var_ToggleBool when applicable. ( Rémi Duraffort )

git version control git at videolan.org
Mon Aug 17 15:57:51 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Aug 17 15:57:29 2009 +0200| [f7f1b5f3bfe531a997ae4877176e518930103069] | committer: Rémi Duraffort 

liblc_video: use var_ToggleBool when applicable.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7f1b5f3bfe531a997ae4877176e518930103069
---

 src/control/video.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/control/video.c b/src/control/video.c
index 04e5106..7878698 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -97,13 +97,11 @@ void libvlc_toggle_fullscreen( libvlc_media_player_t *p_mi,
 {
     /* We only work on the first vout */
     vout_thread_t *p_vout = GetVout( p_mi, p_e );
-    bool ret;
 
     /* GetVout will raise the exception for us */
     if( !p_vout ) return;
 
-    ret = var_GetBool( p_vout, "fullscreen" );
-    var_SetBool( p_vout, "fullscreen", !ret );
+    var_ToggleBool( p_vout, "fullscreen" );
 
     vlc_object_release( p_vout );
 }




More information about the vlc-devel mailing list