<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div>You should create the variable on the media_player and set it on it and all vouts. Like "fullscreen".<br></div>
<div><br></div>
<div><br></div>
<div>On Sat, Oct 27, 2018, at 10:26, Steve Lhomme  wrote:<br></div>
<blockquote type="cite"><div>On Sat, Oct 27, 2018, at 08:46, Steve Lhomme wrote:<br></div>
<blockquote type="cite"><div>From: "Mohammed (Shaan) Huzaifa Danish" <<a href="mailto:shaan3@gmail.com">shaan3@gmail.com</a>><br></div>
<div><br></div>
<div>Signed-off-by: Steve Lhomme <<a href="mailto:robux4@ycbcr.xyz">robux4@ycbcr.xyz</a>><br></div>
<div>---<br></div>
<div>include/vlc/libvlc_media_player.h | 28 ++++++++++++++++++++++++++++<br></div>
<div>lib/libvlc.sym                    |  2 ++<br></div>
<div>lib/media_player.c                |  1 +<br></div>
<div>lib/video.c                       | 27 +++++++++++++++++++++++++++<br></div>
<div>4 files changed, 58 insertions(+)<br></div>
<div><br></div>
<div>diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h<br></div>
<div>index 73dadda3ba..ae308df4fa 100644<br></div>
<div>--- a/include/vlc/libvlc_media_player.h<br></div>
<div>+++ b/include/vlc/libvlc_media_player.h<br></div>
<div>@@ -1296,6 +1296,34 @@ LIBVLC_API int libvlc_video_update_viewpoint( libvlc_media_player_t *p_mi,<br></div>
<div>                                              const libvlc_video_viewpoint_t *p_viewpoint,<br></div>
<div>                                              bool b_absolute);<br></div>
<div> <br></div>
<div>+/**<br></div>
<div>+ * Video stereo modes<br></div>
<div>+ */<br></div>
<div>+typedef enum libvlc_video_stereo_mode_t {<br></div>
<div>+    libvlc_VideoStereoAuto = 0,<br></div>
<div>+    libvlc_VideoStereoOriginal,<br></div>
<div>+    libvlc_VideoStereoLeftEye,<br></div>
<div>+    libvlc_VideoStereoRightEye,<br></div>
<div>+} libvlc_video_stereo_mode_t;<br></div>
<div>+<br></div>
<div>+/**<br></div>
<div>+ * Get current video stereo mode.<br></div>
<div>+ *<br></div>
<div>+ * \param p_mi the media player<br></div>
<div>+ * \return the video stereo mode.<br></div>
<div>+ */<br></div>
<div>+LIBVLC_API libvlc_video_stereo_mode_t libvlc_video_get_video_stereo_mode(<br></div>
<div>+                                              libvlc_media_player_t *p_mi );<br></div>
</blockquote><div><br></div>
<div>too many video in the name.<br></div>
<div><br></div>
<blockquote type="cite"><div>+<br></div>
<div>+/**<br></div>
<div>+ * Set new video stereo mode.<br></div>
<div>+ *<br></div>
<div>+ * \param p_mi the media player<br></div>
<div>+ * \param i_mode new video stereo mode<br></div>
<div>+ */<br></div>
<div>+LIBVLC_API void libvlc_video_set_video_stereo_mode( libvlc_media_player_t *p_mi,<br></div>
<div>+                                      const libvlc_video_stereo_mode_t i_mode );<br></div>
<div>+<br></div>
<div>/**<br></div>
<div>  * Get current video subtitle.<br></div>
<div>  *<br></div>
<div>diff --git a/lib/libvlc.sym b/lib/libvlc.sym<br></div>
<div>index 9a896ce7b2..1d34bd6b2d 100644<br></div>
<div>--- a/lib/libvlc.sym<br></div>
<div>+++ b/lib/libvlc.sym<br></div>
<div>@@ -235,6 +235,7 @@ libvlc_video_get_teletext<br></div>
<div>libvlc_video_get_track<br></div>
<div>libvlc_video_get_track_count<br></div>
<div>libvlc_video_get_track_description<br></div>
<div>+libvlc_video_get_video_stereo_mode<br></div>
<div>libvlc_video_set_adjust_float<br></div>
<div>libvlc_video_set_adjust_int<br></div>
<div>libvlc_video_set_aspect_ratio<br></div>
<div>@@ -255,6 +256,7 @@ libvlc_video_set_spu<br></div>
<div>libvlc_video_set_spu_delay<br></div>
<div>libvlc_video_set_teletext<br></div>
<div>libvlc_video_set_track<br></div>
<div>+libvlc_video_set_video_stereo_mode<br></div>
<div>libvlc_video_take_snapshot<br></div>
<div>libvlc_video_new_viewpoint<br></div>
<div>libvlc_video_update_viewpoint<br></div>
<div>diff --git a/lib/media_player.c b/lib/media_player.c<br></div>
<div>index 4f4cb70291..5d277396de 100644<br></div>
<div>--- a/lib/media_player.c<br></div>
<div>+++ b/lib/media_player.c<br></div>
<div>@@ -670,6 +670,7 @@ libvlc_media_player_new( libvlc_instance_t *instance )<br></div>
<div>    var_Create (mp, "crop", VLC_VAR_STRING);<br></div>
<div>    var_Create (mp, "deinterlace", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);<br></div>
<div>    var_Create (mp, "deinterlace-mode", VLC_VAR_STRING | VLC_VAR_DOINHERIT);<br></div>
<div>+    var_Create (mp, "video-stereo-mode", VLC_VAR_INTEGER);<br></div>
<div> <br></div>
<div>    var_Create (mp, "vbi-page", VLC_VAR_INTEGER);<br></div>
<div>    var_SetInteger (mp, "vbi-page", 100);<br></div>
<div>diff --git a/lib/video.c b/lib/video.c<br></div>
<div>index e5796ec2c8..bb8af0328f 100644<br></div>
<div>--- a/lib/video.c<br></div>
<div>+++ b/lib/video.c<br></div>
<div>@@ -315,6 +315,33 @@ int libvlc_video_update_viewpoint( libvlc_media_player_t *p_mi,<br></div>
<div>    return 0;<br></div>
<div>}<br></div>
<div> <br></div>
<div>+libvlc_video_stereo_mode_t libvlc_video_get_video_stereo_mode(libvlc_media_player_t *p_mi)<br></div>
<div>+{<br></div>
<div>+    static_assert( libvlc_VideoStereoAuto       == VIDEO_STEREO_OUTPUT_AUTO &&<br></div>
<div>+                   libvlc_VideoStereoOriginal   == VIDEO_STEREO_OUTPUT_ORIGINAL &&<br></div>
<div>+                   libvlc_VideoStereoLeftEye    == VIDEO_STEREO_OUTPUT_LEFT_ONLY &&<br></div>
<div>+                   libvlc_VideoStereoRightEye   == VIDEO_STEREO_OUTPUT_RIGHT_ONLY,<br></div>
<div>+                   "stereo mode mismatch" );<br></div>
<div>+<br></div>
<div>+    return var_GetInteger(p_mi, "video-stereo-mode");<br></div>
<div>+}<br></div>
<div>+<br></div>
<div>+void libvlc_video_set_video_stereo_mode(libvlc_media_player_t *p_mi,<br></div>
<div>+                                       const libvlc_video_stereo_mode_t i_mode)<br></div>
<div>+{<br></div>
<div>+    input_thread_t *p_input_thread = libvlc_get_input_thread(p_mi);<br></div>
<div>+<br></div>
<div>+    if (p_input_thread)<br></div>
<div>+    {<br></div>
<div>+        var_SetInteger(p_input_thread, "video-stereo-mode", i_mode);<br></div>
<div>+        vlc_object_release(p_input_thread);<br></div>
<div>+    }<br></div>
<div>+    else<br></div>
<div>+    {<br></div>
<div>+        libvlc_printerr("No active input");<br></div>
<div>+    }<br></div>
<div>+}<br></div>
<div>+<br></div>
<div>int libvlc_video_get_spu( libvlc_media_player_t *p_mi )<br></div>
<div>{<br></div>
<div>    input_thread_t *p_input_thread = libvlc_get_input_thread( p_mi );<br></div>
<div>--<br></div>
<div>2.17.0<br></div>
<div><br></div>
<div><u>_______________________________________________</u><br></div>
<div>vlc-devel mailing list<br></div>
<div>To unsubscribe or modify your subscription options:<br></div>
<div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div>
</blockquote><div><br></div>
<div><u>_______________________________________________</u><br></div>
<div>vlc-devel mailing list<br></div>
<div>To unsubscribe or modify your subscription options:<br></div>
<div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div>
</blockquote><div><br></div>
</body>
</html>