Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
capmt: notify server properly when PID changes after tuning
  • Loading branch information
perexg committed May 13, 2016
1 parent 5cbc518 commit 268d89f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/descrambler/capmt.c
Expand Up @@ -2110,10 +2110,14 @@ capmt_service_start(caclient_t *cac, service_t *s)
/* update PIDs only */
i = 0;
TAILQ_FOREACH(st, &t->s_filt_components, es_filt_link)
if (i < MAX_PIDS && SCT_ISAV(st->es_type))
if (i < MAX_PIDS && SCT_ISAV(st->es_type)) {
if (ct->ct_pids[i] != st->es_pid) change = 1;
ct->ct_pids[i++] = st->es_pid;
for ( ; i < MAX_PIDS; i++)
}
for ( ; i < MAX_PIDS; i++) {
if (ct->ct_pids[i]) change = 1;
ct->ct_pids[i] = 0;
}
goto fin;
}

Expand Down

0 comments on commit 268d89f

Please sign in to comment.