Commit 7f3c9cf9 authored by Rafaël Carré's avatar Rafaël Carré

TS Mux: factorize

parent 496fab1d
...@@ -2276,13 +2276,10 @@ static void GetPMT( sout_mux_t *p_mux, sout_buffer_chain_t *c ) ...@@ -2276,13 +2276,10 @@ static void GetPMT( sout_mux_t *p_mux, sout_buffer_chain_t *c )
pmt_map_t *p_usepid = bsearch( &i_pidinput, p_sys->pmtmap, pmt_map_t *p_usepid = bsearch( &i_pidinput, p_sys->pmtmap,
p_sys->i_pmtslots, sizeof(pmt_map_t), intcompare ); p_sys->i_pmtslots, sizeof(pmt_map_t), intcompare );
dvbpsi_pmt_es_t *p_es; /* If there's an error somewhere, dump it to the first pmt */
if( p_usepid != NULL ) unsigned prog = p_usepid ? p_usepid->i_prog : 0;
p_es = dvbpsi_PMTAddES( &p_sys->dvbpmt[p_usepid->i_prog],
p_stream->i_stream_type, p_stream->i_pid ); dvbpsi_pmt_es_t *p_es = dvbpsi_PMTAddES( &p_sys->dvbpmt[prog],
else
/* If there's an error somewhere, dump it to the first pmt */
p_es = dvbpsi_PMTAddES( &p_sys->dvbpmt[0],
p_stream->i_stream_type, p_stream->i_pid ); p_stream->i_stream_type, p_stream->i_pid );
if( p_stream->i_stream_id == 0xfa || p_stream->i_stream_id == 0xfb ) if( p_stream->i_stream_id == 0xfa || p_stream->i_stream_id == 0xfb )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment