[vlc-devel] [PATCH 14/17] core: store the projection mode in use in video_display_t

Steve Lhomme robux4 at videolabs.io
Mon Nov 14 15:16:23 CET 2016


From: Thomas Guillem <thomas at gllm.fr>

This value must be updated by the vout to reflect what projection mode it's
using.

--
replaces https://patches.videolan.org/patch/14956/
* query the projection mode from the vout during init as we need to have a
proper projection value instead of VOUT_PROJECTION_AUTO
---
 include/vlc_vout_display.h | 7 +++++++
 src/video_output/display.c | 1 +
 2 files changed, 8 insertions(+)

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index f83f15b..b6edc42 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -289,6 +289,13 @@ struct vout_display_t {
      */
     video_format_t fmt;
 
+    /* Projection mode
+     *
+     * The projection mode currently used.
+     * It cannot be VOUT_PROJECTION_AUTO.
+     */
+    vout_projection_mode_t projection;
+
     /* Information
      *
      * You can only set them in the open function.
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 36d334b..c483218 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -103,6 +103,7 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
     vd->control = NULL;
     vd->manage = NULL;
     vd->sys = NULL;
+    vd->projection = cfg->projection;
 
     vd->owner = *owner;
 
-- 
2.10.1



More information about the vlc-devel mailing list