]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
en50221: fix the supported CAIDs log, issue #4400
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Jan 2018 07:55:12 +0000 (08:55 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Jan 2018 14:03:22 +0000 (15:03 +0100)
src/input/mpegts/en50221/en50221_apps.c

index 1e38b04f20398781c5763801d8269ffe817438f6..240b25f6863ab55f869dab4e9b7b1c0e359f8d37 100644 (file)
@@ -165,7 +165,7 @@ en50221_app_ca_handle
     buf[0] = buf[1] = '\0';
     for (i = 0; i < count; ) {
       for (j = 0, c = 0; j < 4 && i < count; i++, j++) {
-        caid = app->cia_caids[0];
+        caid = app->cia_caids[i];
         tvh_strlcatf(buf, sizeof(buf), c, " %04X (%s)", caid, caid2name(caid));
       }
       tvhinfo(LS_EN50221, "%s: CAM supported CAIDs: %s", app->cia_name, buf + 1);