Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts input: fix dupe logs, don't subcribe pmt/pcr pids again
  • Loading branch information
perexg committed Jan 19, 2016
1 parent 1bd78fd commit b261275
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/input/mpegts/mpegts_input.c
Expand Up @@ -476,6 +476,7 @@ mpegts_input_open_pid
buf, (type & MPS_TABLES) ? "tables" : "fullmux", type, owner);
mm->mm_update_pids_flag = 1;
} else {
mpegts_mux_nice_name(mm, buf, sizeof(buf));
tvherror("mpegts",
"%s - open PID %04x (%d) failed, dupe sub (owner %p)",
buf, mp->mp_pid, mp->mp_pid, owner);
Expand All @@ -493,6 +494,7 @@ mpegts_input_open_pid
buf, mp->mp_pid, mp->mp_pid, type, owner);
mm->mm_update_pids_flag = 1;
} else {
mpegts_mux_nice_name(mm, buf, sizeof(buf));
tvherror("mpegts", "%s - open PID %04x (%d) failed, dupe sub (owner %p)",
buf, mp->mp_pid, mp->mp_pid, owner);
free(mps);
Expand Down Expand Up @@ -675,7 +677,8 @@ mpegts_input_open_service
mpegts_input_open_pid(mi, mm, DVB_CAT_PID, MPS_SERVICE, MPS_WEIGHT_CAT, s);
/* Open only filtered components here */
TAILQ_FOREACH(st, &s->s_filt_components, es_filt_link)
if (s->s_scrambled_pass || st->es_type != SCT_CA) {
if ((s->s_scrambled_pass || st->es_type != SCT_CA) &&
st->es_pid != s->s_pmt_pid && st->es_pid != s->s_pcr_pid) {
st->es_pid_opened = 1;
mpegts_input_open_pid(mi, mm, st->es_pid, MPS_SERVICE, mpegts_mps_weight(st), s);
}
Expand Down

0 comments on commit b261275

Please sign in to comment.