[vlc-commits] input: rework ControlUpdateSout
Thomas Guillem
git at videolan.org
Wed Jan 31 16:25:42 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 31 15:59:19 2018 +0100| [545f46ea0b54cd981704426bdb2fed852986053c] | committer: Thomas Guillem
input: rework ControlUpdateSout
And rename it to ControlUpdateRenderer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=545f46ea0b54cd981704426bdb2fed852986053c
---
src/input/input.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 7476771fd1..14f114ceb4 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1788,10 +1788,9 @@ 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 )
+static void ControlUpdateRenderer( input_thread_t *p_input, bool b_enable )
{
- var_SetString( p_input, "sout", psz_chain );
- if( psz_chain && *psz_chain )
+ if( b_enable )
{
if( InitSout( p_input ) != VLC_SUCCESS )
{
@@ -2236,7 +2235,7 @@ static bool Control( input_thread_t *p_input,
if ( p_priv->p_renderer )
{
- ControlUpdateSout( p_input, NULL );
+ ControlUpdateRenderer( p_input, false );
demux_FilterDisable( p_priv->master->p_demux,
vlc_renderer_item_demux_filter( p_priv->p_renderer ) );
vlc_renderer_item_release( p_priv->p_renderer );
@@ -2245,7 +2244,7 @@ static bool Control( input_thread_t *p_input,
if( p_item != NULL )
{
p_priv->p_renderer = vlc_renderer_item_hold( p_item );
- ControlUpdateSout( p_input, vlc_renderer_item_sout( p_item ) );
+ ControlUpdateRenderer( p_input, true );
if( !demux_FilterEnable( p_priv->master->p_demux,
vlc_renderer_item_demux_filter( p_priv->p_renderer ) ) )
{
More information about the vlc-commits
mailing list