[vlc-commits] opengl: start the 360° display from the left part of the video

Steve Lhomme git at videolan.org
Tue Nov 8 11:38:31 CET 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Sep 19 16:58:51 2016 +0200| [08207425d8d260a6650a332c4c7c7b040ff48b15] | committer: Thomas Guillem

opengl: start the 360° display from the left part of the video

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/video_output/opengl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 1c52a71..26aaec9 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -694,6 +694,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
     {
         vgl->f_teta = vgl->fmt.f_pose_roll_degrees / 180. * (float) M_PI;
         vgl->f_phi  = vgl->fmt.f_pose_yaw_degrees  / 180. * (float) M_PI;
+        vgl->f_teta -= (float) M_PI/2;
     }
 
     /* */



More information about the vlc-commits mailing list