[vlc-commits] android: request rotation if video is oriented
Felix Abecassis
git at videolan.org
Wed Sep 17 07:42:57 CEST 2014
vlc/vlc-2.2 | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Fri Sep 12 19:43:21 2014 +0200| [53d6fa0007650a8fe428394e7a5f233cffbef108] | committer: Jean-Baptiste Kempf
android: request rotation if video is oriented
(cherry picked from commit 362b0da80fd10ea976e570b92297691cb387a8f6)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=53d6fa0007650a8fe428394e7a5f233cffbef108
---
modules/video_output/android/surface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/android/surface.c b/modules/video_output/android/surface.c
index f6a183e..63cbf15 100644
--- a/modules/video_output/android/surface.c
+++ b/modules/video_output/android/surface.c
@@ -173,7 +173,8 @@ static void *InitLibrary(vout_display_sys_t *sys)
static int Open(vlc_object_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)
return VLC_EGENERIC;
More information about the vlc-commits
mailing list