Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts input: pass ECM pids on scrambled passthrough, too
  • Loading branch information
perexg committed Oct 11, 2015
1 parent 935f983 commit baad0ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/input/mpegts/mpegts_input.c
Expand Up @@ -582,14 +582,15 @@ mpegts_input_open_service ( mpegts_input_t *mi, mpegts_service_t *s, int flags,
mpegts_pid_add(pids, s->s_pcr_pid, MPS_WEIGHT_PCR);
/* Open only filtered components here */
TAILQ_FOREACH(st, &s->s_filt_components, es_filt_link)
if (st->es_type != SCT_CA) {
if (s->s_scrambled_pass || st->es_type != SCT_CA) {
st->es_pid_opened = 1;
mpegts_input_open_pid(mi, mm, st->es_pid, MPS_SERVICE, mps_weight(st), s);
}

/* Ensure that filtered PIDs are not send in ts_recv_raw */
TAILQ_FOREACH(st, &s->s_filt_components, es_filt_link)
if (st->es_type != SCT_CA && st->es_pid >= 0 && st->es_pid < 8192)
if ((s->s_scrambled_pass || st->es_type != SCT_CA) &&
st->es_pid >= 0 && st->es_pid < 8192)
mpegts_pid_add(pids, st->es_pid, mps_weight(st));

LIST_FOREACH(s2, &s->s_masters, s_masters_link) {
Expand Down

0 comments on commit baad0ee

Please sign in to comment.