[vlc-devel] commit: Use var_ToggleBool. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 30 17:22:48 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 30 16:10:34 2009 +0200| [b9b3fba6977af3c0dd81c9ce7f9b2a9e99a11d9b] | committer: Rémi Duraffort 

Use var_ToggleBool.

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

 modules/gui/macosx/vout.m |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 94548d3..ba9c7d7 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -434,9 +434,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
 {
     vlc_value_t val;
     if( !p_real_vout ) return;
-    var_Get( p_real_vout, "fullscreen", &val );
-    val.b_bool = !val.b_bool;
-    var_Set( p_real_vout, "fullscreen", val );
+    var_ToggleBool( p_real_vout, "fullscreen" );
 }
 
 - (BOOL)isFullscreen




More information about the vlc-devel mailing list