From: Jaroslav Kysela Date: Fri, 28 Dec 2018 20:21:36 +0000 (+0100) Subject: teletext: fix the subtitle parser (wrong SCT_ type match), issue #5422 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b17dcf91490c38df678472bef3a117b4c6e2996c;p=thirdparty%2Ftvheadend.git teletext: fix the subtitle parser (wrong SCT_ type match), issue #5422 --- diff --git a/src/parsers/parser_teletext.c b/src/parsers/parser_teletext.c index c2cdbed8e..ff39eb6ac 100644 --- a/src/parsers/parser_teletext.c +++ b/src/parsers/parser_teletext.c @@ -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 }