[vlc-devel] commit: Skins2: Use var_SetVariant() some more. (JP Dinger )

git version control git at videolan.org
Sat Dec 5 22:35:06 CET 2009


vlc | branch: master | JP Dinger <jpd at videolan.org> | Mon Nov 16 13:06:08 2009 +0100| [34a265ace2965d754351f8ae2936f6decd35a2d5] | committer: JP Dinger 

Skins2: Use var_SetVariant() some more.

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

 modules/gui/skins2/commands/cmd_dvd.cpp |    5 +----
 modules/gui/skins2/vars/time.cpp        |    7 +------
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/modules/gui/skins2/commands/cmd_dvd.cpp b/modules/gui/skins2/commands/cmd_dvd.cpp
index 9c47276..6d6311a 100644
--- a/modules/gui/skins2/commands/cmd_dvd.cpp
+++ b/modules/gui/skins2/commands/cmd_dvd.cpp
@@ -84,10 +84,7 @@ void CmdDvdRootMenu::execute()
 
     if( p_input )
     {
-        vlc_value_t val;
-        val.i_int = 2;
-
-        var_Set( p_input, "title  0", val);
+        var_SetInteger( p_input, "title  0", 2);
         vlc_object_release( p_input );
     }
 }
diff --git a/modules/gui/skins2/vars/time.cpp b/modules/gui/skins2/vars/time.cpp
index 536f55d..b62b488 100644
--- a/modules/gui/skins2/vars/time.cpp
+++ b/modules/gui/skins2/vars/time.cpp
@@ -32,12 +32,7 @@ void StreamTime::set( float percentage, bool updateVLC )
 
     // Avoid looping forever...
     if( updateVLC && getIntf()->p_sys->p_input )
-    {
-        vlc_value_t pos;
-        pos.f_float = percentage;
-
-        var_Set( getIntf()->p_sys->p_input, "position", pos );
-    }
+        var_SetFloat( getIntf()->p_sys->p_input, "position", percentage );
 }
 
 




More information about the vlc-devel mailing list