]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts input: tiny optimization
authorJaroslav Kysela <perex@perex.cz>
Fri, 14 Nov 2014 17:44:40 +0000 (18:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 14 Nov 2014 17:45:34 +0000 (18:45 +0100)
src/input/mpegts/mpegts_input.c

index 327ecf20a62f3d6854d2361a1c9f0ca426302ee7..f6a466d888939ba902aa94f6866e6e98d7de5f5d 100644 (file)
@@ -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 */
@@ -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;
           }
@@ -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);
         }