[vlc-devel] commit: Use var_GetInteger() ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu May 14 22:10:04 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 14 22:48:03 2009 +0300| [922f1c07753c075e0e0fd962d37baf19eeac1fba] | committer: Rémi Denis-Courmont 

Use var_GetInteger()

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

 modules/gui/qt4/input_manager.cpp |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 8064fac..3f3d9d8 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -395,12 +395,11 @@ void InputManager::UpdateNavigation()
 void InputManager::UpdateStatus()
 {
     /* Update playing status */
-    vlc_value_t val; val.i_int = 0;
-    var_Get( p_input, "state", &val );
-    if( i_old_playing_status != val.i_int )
+    int state = var_GetInteger( p_input, "state" );
+    if( i_old_playing_status != state )
     {
-        i_old_playing_status = val.i_int;
-        emit statusChanged( val.i_int );
+        i_old_playing_status = state;
+        emit statusChanged( state );
     }
 }
 




More information about the vlc-devel mailing list