[vlc-devel] [PATCH 02/15] opengl: start the 360° display from the left part of the video

Steve Lhomme robux4 at videolabs.io
Mon Nov 7 10:51:51 CET 2016


---
 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;
     }
 
     /* */
-- 
2.10.1



More information about the vlc-devel mailing list