Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
descrambler_service_start - skip filtered CA entries for constcw deci…
…sion

- also constcw_table might be NULL
  • Loading branch information
perexg committed Mar 10, 2016
1 parent f6671cf commit 845bde7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/descrambler/descrambler.c
Expand Up @@ -248,7 +248,8 @@ descrambler_service_start ( service_t *t )
count = 0;
TAILQ_FOREACH(st, &t->s_filt_components, es_filt_link)
LIST_FOREACH(ca, &st->es_caids, link) {
for (p = constcw_table; *p; p++)
if (ca->use == 0) continue;
for (p = constcw_table; p && *p; p++)
if (ca->caid == *p) {
constcw = 1;
break;
Expand All @@ -262,11 +263,13 @@ descrambler_service_start ( service_t *t )

} else {

for (p = constcw_table; *p; p++)
if (*p == ((mpegts_service_t *)t)->s_dvb_forcecaid) {
constcw = 1;
break;
}
if (constcw_table) {
for (p = constcw_table; *p; p++)
if (*p == ((mpegts_service_t *)t)->s_dvb_forcecaid) {
constcw = 1;
break;
}
}

}

Expand Down

0 comments on commit 845bde7

Please sign in to comment.