Commit 3e895786 authored by Jean-Paul Saman's avatar Jean-Paul Saman

demux/ts.c: Do not lead dvbpsi_pmt_t pointers.

Always call dvbpsi_DeletePMT(p_pmt) on a PMT callback. Otherwise the
struct is never released.
parent d3b2bab7
...@@ -4354,7 +4354,9 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt ) ...@@ -4354,7 +4354,9 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
if( !ProgramIsSelected( p_demux, prg->i_number ) if( !ProgramIsSelected( p_demux, prg->i_number )
|| stream_Control( p_demux->s, STREAM_CONTROL_ACCESS, || stream_Control( p_demux->s, STREAM_CONTROL_ACCESS,
ACCESS_SET_PRIVATE_ID_CA, p_pmt ) != VLC_SUCCESS ) ACCESS_SET_PRIVATE_ID_CA, p_pmt ) != VLC_SUCCESS )
dvbpsi_DeletePMT( p_pmt ); msg_Warn( p_demux, "Setting descrambling failed" );
dvbpsi_DeletePMT( p_pmt );
for( int i = 0; i < i_clean; i++ ) for( int i = 0; i < i_clean; i++ )
{ {
......
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