- /* Update "position" for better intf behavour */
- var_Get( p_input, "length", &length );
- if( length.i_time > 0 && val.i_time >= 0 && val.i_time <= length.i_time )
- {
- val.f_float = (double)val.i_time/(double)length.i_time;
- var_Change( p_input, "position", VLC_VAR_SETVALUE, &val, NULL );
- }
+ val.f_float = (double)newval.i_time/(double)i_length;
+ var_Change( p_input, "position", VLC_VAR_SETVALUE, &val, NULL );
+ }