Commit 53d6fa00 authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

android: request rotation if video is oriented

(cherry picked from commit 362b0da80fd10ea976e570b92297691cb387a8f6)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 65ae93ce
...@@ -173,7 +173,8 @@ static void *InitLibrary(vout_display_sys_t *sys) ...@@ -173,7 +173,8 @@ static void *InitLibrary(vout_display_sys_t *sys)
static int Open(vlc_object_t *p_this) static int Open(vlc_object_t *p_this)
{ {
vout_display_t *vd = (vout_display_t *)p_this; vout_display_t *vd = (vout_display_t *)p_this;
video_format_t fmt = vd->fmt; video_format_t fmt;
video_format_ApplyRotation(&fmt, &vd->fmt);
if (fmt.i_chroma == VLC_CODEC_ANDROID_OPAQUE) if (fmt.i_chroma == VLC_CODEC_ANDROID_OPAQUE)
return VLC_EGENERIC; return VLC_EGENERIC;
......
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