[vlc-devel] commit: libvlc_toggle_fullscreen: use var_ToggleBool result ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Feb 10 18:00:35 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 10 17:50:18 2010 +0200| [ec104981f5e337d321520a5ba7adf9e29892be23] | committer: Rémi Denis-Courmont 

libvlc_toggle_fullscreen: use var_ToggleBool result

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

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

diff --git a/src/control/video.c b/src/control/video.c
index 3000378..e9f8ed7 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -109,8 +109,7 @@ int libvlc_get_fullscreen( libvlc_media_player_t *p_mi )
 
 void libvlc_toggle_fullscreen( libvlc_media_player_t *p_mi )
 {
-    var_ToggleBool (p_mi, "fullscreen");
-    bool b_fullscreen = var_GetBool (p_mi, "fullscreen");
+    bool b_fullscreen = var_ToggleBool (p_mi, "fullscreen");
 
     /* Apply to current video outputs (if any) */
     size_t n;




More information about the vlc-devel mailing list