]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
teletext: fix the subtitle parser (wrong SCT_ type match), issue #5422
authorJaroslav Kysela <perex@perex.cz>
Fri, 28 Dec 2018 20:21:36 +0000 (21:21 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 28 Dec 2018 20:21:36 +0000 (21:21 +0100)
src/parsers/parser_teletext.c

index c2cdbed8e9eb13c550c8b4a3295428218a8c0f5d..ff39eb6ac4af5d2dce1ee3d9e49fa5c2058d79fd 100644 (file)
@@ -845,9 +845,9 @@ tt_subtitle_deliver(parser_t *t, parser_es_t *parent, tt_mag_t *ttm)
 
   TAILQ_FOREACH(es, &t->prs_components.set_filter, es_filter_link) {
     st = (parser_es_t *)es;
-    if (st->es_type != SCT_TELETEXT) continue;
+    if (st->es_type != SCT_TEXTSUB) continue;
     if (parent->es_pid == st->es_parent_pid &&
-      ttm->ttm_curpage == st->es_pid -  PID_TELETEXT_BASE) {
+        ttm->ttm_curpage == st->es_pid - PID_TELETEXT_BASE) {
       if (extract_subtitle(t, st, ttm, ttm->ttm_current_pts))
         ttm->ttm_current_pts++; // Avoid duplicate (non-monotonic) PTS
     }