Commit 67e7a01a authored by Robert Jedrzejczyk's avatar Robert Jedrzejczyk Committed by Rémi Denis-Courmont

Fix libvlc_video_set_scale()

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 5e0b1e93
...@@ -223,7 +223,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale ) ...@@ -223,7 +223,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale )
{ {
if (f_scale != 0.) if (f_scale != 0.)
var_SetFloat (p_mp, "scale", f_scale); var_SetFloat (p_mp, "scale", f_scale);
var_SetBool (p_mp, "autoscale", f_scale != 0.); var_SetBool (p_mp, "autoscale", f_scale == 0.);
/* Apply to current video outputs (if any) */ /* Apply to current video outputs (if any) */
size_t n; size_t n;
...@@ -234,7 +234,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale ) ...@@ -234,7 +234,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale )
if (f_scale != 0.) if (f_scale != 0.)
var_SetFloat (p_vout, "scale", f_scale); var_SetFloat (p_vout, "scale", f_scale);
var_SetBool (p_mp, "autoscale", f_scale != 0.); var_SetBool (p_vout, "autoscale", f_scale == 0.);
vlc_object_release (p_vout); vlc_object_release (p_vout);
} }
free (pp_vouts); 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