[vlc-commits] video_output: default-initialize viewpoint if variable is missing

Filip Roséen git at videolan.org
Thu Nov 17 00:15:40 CET 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Wed Nov 16 22:43:03 2016 +0100| [8a62e7a2e14d8715e9783c895661a3901a2b96bf] | committer: Jean-Baptiste Kempf

video_output: default-initialize viewpoint if variable is missing

This fixes 360 playback with OpenGL

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/video_output/video_output.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 0ce4a4d..6c937c0 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -558,6 +558,9 @@ static void VoutGetDisplayCfg(vout_thread_t *vout, vout_display_cfg_t *cfg, cons
     const vlc_viewpoint_t *p_viewpoint = var_InheritAddress(vout, "viewpoint");
     if (p_viewpoint != NULL)
         cfg->viewpoint = *p_viewpoint;
+    else
+        vlc_viewpoint_init( &cfg->viewpoint );
+
     cfg->display.title = title;
     const int display_width = var_CreateGetInteger(vout, "width");
     const int display_height = var_CreateGetInteger(vout, "height");



More information about the vlc-commits mailing list