Commit f350b09d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lib: do not convert to double in libvlc_video_set_scale()

parent 2e77318c
......@@ -239,7 +239,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale )
{
if (f_scale != 0.)
var_SetFloat (p_mp, "scale", f_scale);
var_SetBool (p_mp, "autoscale", f_scale == 0.);
var_SetBool (p_mp, "autoscale", f_scale == 0.f);
/* Apply to current video outputs (if any) */
size_t n;
......@@ -250,7 +250,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale )
if (f_scale != 0.)
var_SetFloat (p_vout, "scale", f_scale);
var_SetBool (p_vout, "autoscale", f_scale == 0.);
var_SetBool (p_vout, "autoscale", f_scale == 0.f);
vlc_object_release (p_vout);
}
free (pp_vouts);
......
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