]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mepgts: correct invalid interpretation of service type in VCT. Fixes #1857.
authorAdam Sutton <dev@adamsutton.me.uk>
Sun, 29 Dec 2013 23:04:51 +0000 (23:04 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Sun, 29 Dec 2013 23:04:51 +0000 (23:04 +0000)
src/input/mpegts/dvb_psi.c

index 9727a3fd47ae2e6475b6de05c611db9e0ff1532a..606ec082c31759db830f48bbf82420b9d3271d46 100644 (file)
@@ -1090,6 +1090,10 @@ atsc_vct_callback
     tvhdebug("vct", "chnum  %d.%d", maj, min);
     tvhdebug("vct", "type   %02X (%d)", type, type);
 
+    /* Skip */
+    if (type > 3)
+      goto next;
+
     /* Find mux */
     LIST_FOREACH(mm, &mn->mn_muxes, mm_network_link)
       if (mm->mm_tsid == tsid)
@@ -1101,10 +1105,6 @@ atsc_vct_callback
       goto next;
 
     /* Update */
-    if (s->s_dvb_servicetype != type) {
-      s->s_dvb_servicetype = type;
-      save = 1;
-    }
     if (strcmp(s->s_dvb_svcname ?: "", chname)) {
       tvh_str_set(&s->s_dvb_svcname, chname);
       save = 1;