Commit 34a265ac authored by JP Dinger's avatar JP Dinger

Skins2: Use var_SetVariant() some more.

parent da48f73f
...@@ -84,10 +84,7 @@ void CmdDvdRootMenu::execute() ...@@ -84,10 +84,7 @@ void CmdDvdRootMenu::execute()
if( p_input ) if( p_input )
{ {
vlc_value_t val; var_SetInteger( p_input, "title 0", 2);
val.i_int = 2;
var_Set( p_input, "title 0", val);
vlc_object_release( p_input ); vlc_object_release( p_input );
} }
} }
......
...@@ -32,12 +32,7 @@ void StreamTime::set( float percentage, bool updateVLC ) ...@@ -32,12 +32,7 @@ void StreamTime::set( float percentage, bool updateVLC )
// Avoid looping forever... // Avoid looping forever...
if( updateVLC && getIntf()->p_sys->p_input ) if( updateVLC && getIntf()->p_sys->p_input )
{ var_SetFloat( getIntf()->p_sys->p_input, "position", percentage );
vlc_value_t pos;
pos.f_float = percentage;
var_Set( getIntf()->p_sys->p_input, "position", pos );
}
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment