Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts input: tiny optimization
  • Loading branch information
perexg committed Nov 14, 2014
1 parent 74a3b77 commit 47ecb74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/input/mpegts/mpegts_input.c
Expand Up @@ -747,6 +747,8 @@ mpegts_input_process
if (mm == NULL || (mmi = mm->mm_active) == NULL)
return;

assert(mm == mmi->mmi_mux);

mi->mi_live = 1;

/* Process */
Expand Down Expand Up @@ -800,7 +802,7 @@ mpegts_input_process

/* Special case streams */
LIST_FOREACH(s, &mi->mi_transports, s_active_link) {
if (((mpegts_service_t*)s)->s_dvb_mux != mmi->mmi_mux) continue;
if (((mpegts_service_t*)s)->s_dvb_mux != mm) continue;
if (pid == s->s_pmt_pid) stream = MPS_STREAM;
else if (pid == s->s_pcr_pid) stream = MPS_STREAM;
}
Expand All @@ -810,7 +812,7 @@ mpegts_input_process
/* Stream data */
if (stream) {
LIST_FOREACH(s, &mi->mi_transports, s_active_link) {
if (((mpegts_service_t*)s)->s_dvb_mux != mmi->mmi_mux) continue;
if (((mpegts_service_t*)s)->s_dvb_mux != mm) continue;
f = table || (pid == s->s_pmt_pid) || (pid == s->s_pcr_pid);
ts_recv_packet1((mpegts_service_t*)s, tsb, NULL, f);
}
Expand Down

0 comments on commit 47ecb74

Please sign in to comment.