Commit 3e23e0bc 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>
(cherry picked from commit 67e7a01a0b94a0b60670cbf34d8c94d1df098b46)
parent 0ab21cd4
...@@ -221,7 +221,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale ) ...@@ -221,7 +221,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;
...@@ -232,7 +232,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale ) ...@@ -232,7 +232,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