[vlc-devel] commit: Do not ignore teletext initial page (close #1997). (Laurent Aimar )

Derk-Jan Hartman hartman at videolan.org
Sat Sep 6 14:30:28 CEST 2008


I'll take another look at this.
We are dealing with this slightly incorrect actually. It's one stream  
that signals different start pages for different "usages". These  
usages should cause us to create "extra" tracks that have different  
"initial" pages for browsing the Teletext stream.

I can probably fix that easily enough.

DJ

On 6 sep 2008, at 01:10, git version control wrote:
> vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat  
> Sep  6 01:12:38 2008 +0200|  
> [664fb723687c9d6bddd5ff09cb9e96a4fddb42df] | committer: Laurent Aimar
>
> Do not ignore teletext initial page (close #1997).
>
> Be carefull, it adds a new translated strings.
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=664fb723687c9d6bddd5ff09cb9e96a4fddb42df
> ---
>
> modules/demux/ts.c |   15 +++++++++++++--
> 1 files changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/modules/demux/ts.c b/modules/demux/ts.c
> index 6b62688..512729a 100644
> --- a/modules/demux/ts.c
> +++ b/modules/demux/ts.c
> @@ -3403,8 +3403,9 @@ static void PMTCallBack( demux_t *p_demux,  
> dvbpsi_pmt_t *p_pmt )
>                         for( n = 0; n < sub->i_pages_number; n++ )
>                         {
>                             dvbpsi_teletextpage_t *p_page = &sub- 
> >p_pages[n];
> -                            if( (p_page->i_teletext_type == 0x2)
> -                                 || (p_page->i_teletext_type ==  
> 0x5) )
> +                            if( p_page->i_teletext_type == 0x1 ||
> +                                p_page->i_teletext_type == 0x2 ||
> +                                p_page->i_teletext_type == 0x5 )
>                             {
>                                 ts_es_t *p_es;
>
> @@ -3442,6 +3443,16 @@ static void PMTCallBack( demux_t *p_demux,  
> dvbpsi_pmt_t *p_pmt )
>                                 }
>                                 switch( p_page->i_teletext_type )
>                                 {
> +                                case 0x1:
> +                                    p_es->fmt.psz_description =
> +                                        strdup(_("Teletext initial  
> page"));
> +                                    msg_Dbg( p_demux,
> +                                             "    * sub lan=%s page= 
> %d%x",
> +                                             p_es->fmt.psz_language,
> +                                             p_page- 
> >i_teletext_magazine_number,
> +                                             p_page- 
> >i_teletext_page_number );
> +                                    break;
> +
>                                 case 0x2:
>                                     p_es->fmt.psz_description =
>                                         strdup(_("Teletext  
> subtitles"));
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>




More information about the vlc-devel mailing list