]> git.sesse.net Git - vlc/commitdiff
Skins2: Use var_SetVariant() some more.
authorJP Dinger <jpd@videolan.org>
Mon, 16 Nov 2009 12:06:08 +0000 (13:06 +0100)
committerJP Dinger <jpd@videolan.org>
Sat, 5 Dec 2009 21:25:41 +0000 (22:25 +0100)
modules/gui/skins2/commands/cmd_dvd.cpp
modules/gui/skins2/vars/time.cpp

index 9c47276816542b53201b85cbf9ca71d2acf756a6..6d6311aa44e36f877f72fb31cbec11969e5e9f33 100644 (file)
@@ -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 );
     }
 }
index 536f55dd5aa0bf50202b08113b3dcd507cc82a51..b62b488e0959fb20f13d1bd1f240e3f929018369 100644 (file)
@@ -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 );
 }