Commit 34792682 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

android_window: set i_angle for anw too

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent fb1e47e8
......@@ -254,7 +254,6 @@ static android_window *AndroidWindow_New(vout_display_sys_t *sys,
}
}
if (p_window->b_use_priv) {
switch (p_fmt->orientation)
{
case ORIENT_ROTATED_90:
......@@ -269,10 +268,10 @@ static android_window *AndroidWindow_New(vout_display_sys_t *sys,
default:
p_window->i_angle = 0;
}
if (p_window->b_use_priv)
p_window->fmt = *p_fmt;
} else {
else
video_format_ApplyRotation(&p_window->fmt, p_fmt);
}
p_window->i_pic_count = 1;
return p_window;
}
......@@ -375,7 +374,6 @@ error:
p_window->b_use_priv = false;
if (p_window->i_angle != 0)
video_format_ApplyRotation(&p_window->fmt, &p_window->fmt);
p_window->i_angle = 0;
return -1;
}
......
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