Commit 25ead80e authored by Marian Ďurkovič's avatar Marian Ďurkovič Committed by Christophe Massiot

* demux.c: Correctly remove CAPMT when the program goes clear.

parent 39303acc
......@@ -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