[vlc-devel] [PATCH 1/2] es_format: store teletext type
Francois Cartegnie
fcvlcdev at free.fr
Fri Feb 7 15:08:34 CET 2020
---
include/vlc_es.h | 1 +
modules/demux/mpeg/ts_psi.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/vlc_es.h b/include/vlc_es.h
index 5fb5ec1298..2d81a66e70 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -575,6 +575,7 @@ struct subs_format_t
{
uint8_t i_magazine; /* magazine value (3 bits), > 8 for any */
uint8_t i_page; /* BCD packet address value (4+4 bits) */
+ uint8_t i_type; /* type as set in teletext_descriptor */
} teletext;
struct
{
diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c
index 0d64747bf7..baed10874a 100644
--- a/modules/demux/mpeg/ts_psi.c
+++ b/modules/demux/mpeg/ts_psi.c
@@ -929,6 +929,7 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_stream_t *p_pes,
p_page_es->fmt.psz_description = strdup(vlc_gettext(ppsz_teletext_type[p->i_type]));
p_page_es->fmt.subs.teletext.i_magazine = p->i_magazine;
p_page_es->fmt.subs.teletext.i_page = p->i_page;
+ p_page_es->fmt.subs.teletext.i_type = p->i_type;
msg_Dbg( p_demux,
" * ttxt type=%s lan=%s page=%d%02x",
--
2.24.1
More information about the vlc-devel
mailing list