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

Steve Lhomme robux4 at videolabs.io
Fri Nov 4 18:08:44 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 3369281..b79bb13 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. * M_PI;
         vgl->f_phi  = vgl->fmt.f_pose_yaw_degrees  / 180. * M_PI;
+        vgl->f_teta -= M_PI/2;
     }
 
     /* */
-- 
2.10.1



More information about the vlc-devel mailing list