Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
capmt: improve ECM PID changes notification for server
  • Loading branch information
perexg committed May 14, 2016
1 parent c5f3c66 commit 9364230
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/descrambler/capmt.c
Expand Up @@ -1894,7 +1894,7 @@ capmt_caid_change(th_descrambler_t *td)
pthread_mutex_unlock(&capmt->capmt_mutex);

if (change)
capmt_notify_server(capmt, ct, 0);
capmt_notify_server(capmt, ct, 1);
}

static void
Expand Down Expand Up @@ -2111,11 +2111,11 @@ capmt_service_start(caclient_t *cac, service_t *s)
i = 0;
TAILQ_FOREACH(st, &t->s_filt_components, es_filt_link)
if (i < MAX_PIDS && SCT_ISAV(st->es_type)) {
if (ct->ct_pids[i] != st->es_pid) change = 1;
if (ct->ct_pids[i] != st->es_pid) change = 3;
ct->ct_pids[i++] = st->es_pid;
}
for ( ; i < MAX_PIDS; i++) {
if (ct->ct_pids[i]) change = 1;
if (ct->ct_pids[i]) change = 3;
ct->ct_pids[i] = 0;
}
goto fin;
Expand Down Expand Up @@ -2210,7 +2210,7 @@ capmt_service_start(caclient_t *cac, service_t *s)
pthread_mutex_unlock(&capmt->capmt_mutex);

if (change)
capmt_notify_server(capmt, NULL, 0);
capmt_notify_server(capmt, NULL, (change >> 1) & 1);
}


Expand Down

0 comments on commit 9364230

Please sign in to comment.