Skip to content

Commit

Permalink
[dvbapi] Allow the creation of descramblers for all stream pids
Browse files Browse the repository at this point in the history
This should fix some streams on powervu channels not working. It should have been fixed on oscam side, so let's hope they will add it.
  • Loading branch information
oscam-emu committed Dec 16, 2018
1 parent 9e9a485 commit 654a5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module-dvbapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -5901,7 +5901,7 @@ void dvbapi_write_cw(int32_t demux_id, uchar *cw, int32_t pid, int32_t stream_id
cs_hexdump(0, cw + (n * 8), 8, newcw, sizeof(newcw));

// check if already delivered and new cw part is valid but dont check for nullcw on Biss
if((memcmp(cw + (n * 8), demux[demux_id].lastcw[n], 8) != 0 || cwEmpty || stream_id >1)
if((memcmp(cw + (n * 8), demux[demux_id].lastcw[n], 8) != 0 || cwEmpty || stream_id > 0)
&& (memcmp(cw + (n * 8), nullcw, 8) != 0 || demux[demux_id].ECMpids[pid].CAID == 0x2600))
{
ca_index_t idx = dvbapi_ca_setpid(demux_id, pid, stream_id, (algo == CA_ALGO_DES), msgid); // prepare ca
Expand Down

0 comments on commit 654a5e0

Please sign in to comment.