[vlc-commits] input: Fix --disable-sout builds

Hugo Beauzée-Luyssen git at videolan.org
Tue Sep 19 12:18:36 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Sep 19 12:17:43 2017 +0200| [ba3c32e0362f0ed3bd0f817e9197a468742e86ac] | committer: Hugo Beauzée-Luyssen

input: Fix --disable-sout builds

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

 src/input/input.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/input/input.c b/src/input/input.c
index 0de436b1c8..9d8f145777 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1868,6 +1868,7 @@ static void ControlNav( input_thread_t *p_input, int i_type )
     }
 }
 
+#ifdef ENABLE_SOUT
 static void ControlUpdateSout( input_thread_t *p_input, const char* psz_chain )
 {
     var_SetString( p_input, "sout", psz_chain );
@@ -1887,6 +1888,7 @@ static void ControlUpdateSout( input_thread_t *p_input, const char* psz_chain )
     }
     es_out_Control( input_priv(p_input)->p_es_out, ES_OUT_RESTART_ALL_ES );
 }
+#endif
 
 static void ControlInsertDemuxFilter( input_thread_t* p_input, const char* psz_demux_chain )
 {
@@ -2319,6 +2321,7 @@ static bool Control( input_thread_t *p_input,
         }
         case INPUT_CONTROL_SET_RENDERER:
         {
+#ifdef ENABLE_SOUT
             vlc_renderer_item_t *p_item = val.p_address;
             input_thread_private_t *p_priv = input_priv( p_input );
             // We do not support switching from a renderer to another for now
@@ -2345,6 +2348,7 @@ static bool Control( input_thread_t *p_input,
                 }
                 input_resource_TerminateVout( p_priv->p_resource );
             }
+#endif
             break;
         }
 



More information about the vlc-commits mailing list