Commit 3a38f202 authored by massiot's avatar massiot

* demux.c: Correctly remove CAPMT when the program goes clear, patch by Marian Ďurkovič.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@48 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 707cd587
......@@ -1241,6 +1241,10 @@ 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 );
}
......@@ -1252,8 +1256,6 @@ static void PMTCallback( void *_unused, dvbpsi_pmt_t *p_pmt )
en50221_AddPMT( p_pmt );
else if ( b_needs_descrambling && b_needed_descrambling )
en50221_UpdatePMT( p_pmt );
else if ( !b_needs_descrambling && b_needed_descrambling )
en50221_DeletePMT( p_pmt );
}
UpdatePMT( p_pmt->i_program_number );
......
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