[vlc-devel] [PATCH 3/7] decoder: add code to send 3d metadata to the output modules to be handled

Mohammed (Shaan) Huzaifa Danish shaan3 at gmail.com
Thu Jul 13 11:11:24 CEST 2017


From: Mohammed Danish <shaan3 at gmail.com>

This is because we don't want a new vout everytime the video stereo mode changes.
---
 src/input/decoder.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 9678a1ed5f..0fc7b18170 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -417,8 +417,7 @@ static int vout_update_format( decoder_t *p_dec )
      || p_dec->fmt_out.i_codec != p_owner->fmt.video.i_chroma
      || (int64_t)p_dec->fmt_out.video.i_sar_num * p_owner->fmt.video.i_sar_den !=
         (int64_t)p_dec->fmt_out.video.i_sar_den * p_owner->fmt.video.i_sar_num ||
-        p_dec->fmt_out.video.orientation != p_owner->fmt.video.orientation ||
-        p_dec->fmt_out.video.multiview_mode != p_owner->fmt.video.multiview_mode )
+        p_dec->fmt_out.video.orientation != p_owner->fmt.video.orientation )
     {
         vout_thread_t *p_vout;
 
@@ -532,14 +531,15 @@ static int vout_update_format( decoder_t *p_dec )
             return -1;
         }
     }
-
-    if ( memcmp( &p_dec->fmt_out.video.mastering,
+    else if ( memcmp( &p_dec->fmt_out.video.mastering,
                  &p_owner->fmt.video.mastering,
                  sizeof(p_owner->fmt.video.mastering)) ||
          p_dec->fmt_out.video.lighting.MaxCLL !=
          p_owner->fmt.video.lighting.MaxCLL ||
          p_dec->fmt_out.video.lighting.MaxFALL !=
-         p_owner->fmt.video.lighting.MaxFALL)
+         p_owner->fmt.video.lighting.MaxFALL ||
+         p_dec->fmt_out.video.multiview_mode !=
+         p_owner->fmt.video.multiview_mode )
     {
         /* the format has changed but we don't need a new vout */
         vlc_mutex_lock( &p_owner->lock );
-- 
2.12.2.windows.2



More information about the vlc-devel mailing list