[MPlayer-dev-eng] [PATCH] blue back tv feature (automute with no signal)

Alban Bedel albeu at free.fr
Fri May 25 08:04:37 CEST 2007


On Fri, 25 May 2007 12:44:50 +0700
"Vladimir Voroshilov" <voroshil at gmail.com> wrote:

> 2007/5/25, Alban Bedel <albeu at free.fr>:
> > On Thu, 24 May 2007 21:29:30 +0600
> > "Vladimir Voroshilov" <voroshil at gmail.com> wrote:
> >
> > > > 3. no apropriate osd  message
> > > >
> > > > (3) i need a hint how to show "no signal" osd  msg all time until
> > > > signal will appear.
> > > Can anybody advise me how to show osd message from inside tvi_*.c
> > > (i.e. from stream module)
> >
> > You can't. What you can do however is pooling the state from the main loop
> > (using a control) and then display an OSD message when needed. Now if that's
> > really worth it is probably debatable.
> >
> This seems like an another hack.
> I don't think that "No signal" message is enough significant reason to
> add such (only tv driver related) checks in main loop .

As i said it's debatable, however from a design pov it is much cleaner than
using the osd from the demuxer layer which is imho plainly unacceptable.

> I'll prefer something like common
> 'add_osd_msg_to_queue(text,duration)" routine or similar (accessable
> from stream layer).

If you really want to push that from the demuxer layer then your only option
would be to use a subtile stream. Not that much better imho.

	Albeu




More information about the MPlayer-dev-eng mailing list