[MPlayer-dev-eng] [PATCH] Teletext support try3 (1/5, core)

Alban Bedel albeu at free.fr
Sun Jul 15 14:27:09 CEST 2007


On Sun, 15 Jul 2007 19:04:04 +0700
"Vladimir Voroshilov" <voroshil at gmail.com> wrote:

> Hi, Alban
> 
> 2007/7/15, Alban Bedel <albeu at free.fr>:
> > On Sun, 15 Jul 2007 18:01:13 +0700
> > "Vladimir Voroshilov" <voroshil at gmail.com> wrote:
> >
> > > +    if(priv_vbi->on!=0 && priv_vbi->input_section==NULL) {
> > > +        if (NULL==(tmp=mp_input_get_section())) tmp="default";
> > > +        priv_vbi->input_section=strdup(tmp);
> > > +        mp_input_set_section("teletext");
> > > +    }
> > > +    if(priv_vbi->on==0 && priv_vbi->input_section!=NULL) {
> > > +        mp_input_set_section(priv_vbi->input_section);
> > > +        free(priv_vbi->input_section);
> > > +        priv_vbi->input_section=NULL;
> > > +    }
> >
> > This is not acceptable, such UI related code doesn't belong in the
> > stream layer.
> 
> This is part of "<key> {<section>} <command>" feature support.
> I can drop it out ("teletext" input section will be removed, but can
> be replaced with "tv" section, though).

Keep it, it is imho a very desirable feature. But the correct way is
to make such change to the input mode from the property or command that
enable/disable the teletext.

	Albeu




More information about the MPlayer-dev-eng mailing list