[vlc-devel] commit: Fixed es priority for teletext (ts). (Laurent Aimar )

git version control git at videolan.org
Mon Feb 8 22:57:19 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Feb  8 22:55:56 2010 +0100| [062112c74231b0a6f850c7d4ad1174c1a79c4598] | committer: Laurent Aimar 

Fixed es priority for teletext (ts).

It will avoid selecting a non subtitle page at the core levels.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=062112c74231b0a6f850c7d4ad1174c1a79c4598
---

 modules/demux/ts.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 5682e3b..196d9ab 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;




More information about the vlc-devel mailing list