[vlc-commits] android: request rotation if video is oriented

Felix Abecassis git at videolan.org
Fri Sep 12 19:55:13 CEST 2014


vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Fri Sep 12 19:43:21 2014 +0200| [362b0da80fd10ea976e570b92297691cb387a8f6] | committer: Felix Abecassis

android: request rotation if video is oriented

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=362b0da80fd10ea976e570b92297691cb387a8f6
---

 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