[vlc-commits] input: use es_out_id_t * for controls

Thomas Guillem git at videolan.org
Thu Jun 20 08:59:25 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun 17 15:06:28 2019 +0200| [d7b67b775c304ab8751f753097086cc5118efca9] | committer: Thomas Guillem

input: use es_out_id_t * for controls

It worked since vlc_es_id_t was the first member of the es_out_id_t struct.

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

 src/input/input.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index ea667d4941..0e7b8e9699 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2017,17 +2017,18 @@ static bool Control( input_thread_t *p_input,
 
         case INPUT_CONTROL_SET_ES:
             if( es_out_Control( input_priv(p_input)->p_es_out_display,
-                                ES_OUT_SET_ES, param.id ) == VLC_SUCCESS )
+                                ES_OUT_SET_ES, vlc_es_id_get_out( param.id ) )
+                                == VLC_SUCCESS )
                 demux_Control( input_priv(p_input)->master->p_demux, DEMUX_SET_ES,
                                vlc_es_id_GetInputId( param.id ) );
             break;
         case INPUT_CONTROL_UNSET_ES:
             es_out_Control( input_priv(p_input)->p_es_out_display,
-                            ES_OUT_UNSET_ES, param.id );
+                            ES_OUT_UNSET_ES, vlc_es_id_get_out(param.id) );
             break;
         case INPUT_CONTROL_RESTART_ES:
             es_out_Control( input_priv(p_input)->p_es_out_display,
-                            ES_OUT_RESTART_ES, param.id );
+                            ES_OUT_RESTART_ES, vlc_es_id_get_out( param.id ) );
             break;
 
         case INPUT_CONTROL_SET_VIEWPOINT:



More information about the vlc-commits mailing list