[vlc-commits] TS mux: use variable

Rafaël Carré git at videolan.org
Wed Sep 10 10:37:44 CEST 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Sep 10 10:34:25 2014 +0200| [604673e28a69328f0c89a5970727f5bb61d3feff] | committer: Rafaël Carré

TS mux: use variable

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

 modules/mux/mpeg/ts.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 05ea2a2..856810f 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -2286,9 +2286,10 @@ static void GetPMT( sout_mux_t *p_mux, sout_buffer_chain_t *c )
 
     for (int i_stream = 0; i_stream < p_mux->i_nb_inputs; i_stream++ )
     {
-        ts_stream_t *p_stream = (ts_stream_t*)p_mux->pp_inputs[i_stream]->p_sys;
+        sout_input_t *p_input = p_mux->pp_inputs[i_stream];
+        ts_stream_t *p_stream = (ts_stream_t*)p_input->p_sys;
 
-        int i_pidinput = p_mux->pp_inputs[i_stream]->p_fmt->i_id;
+        int i_pidinput = p_input->p_fmt->i_id;
         pmt_map_t *p_usepid = bsearch( &i_pidinput, p_sys->pmtmap,
                     p_sys->i_pmtslots, sizeof(pmt_map_t), intcompare );
 



More information about the vlc-commits mailing list