From 062112c74231b0a6f850c7d4ad1174c1a79c4598 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Mon, 8 Feb 2010 22:55:56 +0100 Subject: [PATCH] Fixed es priority for teletext (ts). It will avoid selecting a non subtitle page at the core levels. --- modules/demux/ts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/demux/ts.c b/modules/demux/ts.c index 5682e3b417..196d9abb8d 100644 --- a/modules/demux/ts.c +++ b/modules/demux/ts.c @@ -3451,6 +3451,7 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_pid_t *pid, /* */ const ts_teletext_page_t *p = &p_page[i]; + p_es->fmt.i_priority = (p->i_type == 0x02 || p->i_type == 0x05) ? 0 : -1; p_es->fmt.psz_language = strndup( p->p_iso639, 3 ); p_es->fmt.psz_description = strdup(vlc_gettext(ppsz_teletext_type[p->i_type])); p_es->fmt.subs.teletext.i_magazine = p->i_magazine; -- 2.39.2