X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Finput%2Fvar.c;h=258b5f4584433a78de0ad708f4f2ee0cc75efc90;hb=f96f02d9958fefa8381106084eb2b114b3cc544e;hp=7591de43c1637f231f85201857a908ccf7549c9c;hpb=69d6f2ab18e6956f22923044044b13419a713724;p=vlc diff --git a/src/input/var.c b/src/input/var.c index 7591de43c1..258b5f4584 100644 --- a/src/input/var.c +++ b/src/input/var.c @@ -592,17 +592,17 @@ static int PositionCallback( vlc_object_t *p_this, char const *psz_cmd, if( !strcmp( psz_cmd, "position-offset" ) ) { float f_position = var_GetFloat( p_input, "position" ) + newval.f_float; - if( f_position < 0.0 ) - f_position = 0.0; - else if( f_position > 1.0 ) - f_position = 1.0; + if( f_position < 0.f ) + f_position = 0.f; + else if( f_position > 1.f ) + f_position = 1.f; var_SetFloat( p_this, "position", f_position ); } else { /* Update "length" for better intf behavour */ const mtime_t i_length = var_GetTime( p_input, "length" ); - if( i_length > 0 && newval.f_float >= 0.0 && newval.f_float <= 1.0 ) + if( i_length > 0 && newval.f_float >= 0.f && newval.f_float <= 1.f ) { vlc_value_t val;