Commit 799d0316 authored by massiot's avatar massiot

* demux.c: On new PMTs, delete the CAPMT before changing ES selection, patch by Marian.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@52 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 36ff346d
......@@ -1198,6 +1198,10 @@ static void PMTCallback( void *_unused, dvbpsi_pmt_t *p_pmt )
return;
}
if ( i_ca_handle && b_is_selected &&
!b_needs_descrambling && b_needed_descrambling )
en50221_DeletePMT( p_current_pmt );
msg_Dbg( NULL, "new PMT program number=%d version=%d pid_pcr=%d",
p_pmt->i_program_number, p_pmt->i_version, p_pmt->i_pcr_pid );
......@@ -1241,10 +1245,6 @@ static void PMTCallback( void *_unused, dvbpsi_pmt_t *p_pmt )
}
}
if ( i_ca_handle && b_is_selected &&
!b_needs_descrambling && b_needed_descrambling )
en50221_DeletePMT( p_current_pmt );
dvbpsi_DeletePMT( p_current_pmt );
}
......
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