[vlc-commits] input: keep ES_OUT_MODE_AUTO when using a renderer

Thomas Guillem git at videolan.org
Fri Jan 19 18:44:23 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 19 16:26:27 2018 +0100| [fa81203899d04db362424d2d71c6bfa84024b02a] | committer: Jean-Baptiste Kempf

input: keep ES_OUT_MODE_AUTO when using a renderer

Chromecast need auto mode in order to avoid to send extra tracks that can't be
read by the CC and in order to make the es selection works.

Ideally, this mode should be fetched from the renderer item.

(cherry picked from commit 50ce0b4f0f56df1ed24e42da65bea1b5498888f7)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/input/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/input.c b/src/input/input.c
index c9219b74c5..6dded7d0f8 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1255,7 +1255,7 @@ static void InitPrograms( input_thread_t * p_input )
 
     /* Set up es_out */
     i_es_out_mode = ES_OUT_MODE_AUTO;
-    if( input_priv(p_input)->p_sout )
+    if( input_priv(p_input)->p_sout && !input_priv(p_input)->p_renderer )
     {
         char *prgms;
 



More information about the vlc-commits mailing list