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

Vladimir Voroshilov voroshil at gmail.com
Fri May 25 08:12:59 CEST 2007


2007/5/25, Alban Bedel <albeu at free.fr>:
> 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.
In such case first solution will be better, i think.
It is not difficult for me to add something like
"tv_is_signal_present" and check it in main loop together with
DEMUXER_TYPE_TV. If this is the only solution with current design,
i'll do so. I just need a point where to put such check in main loop.

-- 
Regards,
Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at jabber.ru
ICQ: 95587719



More information about the MPlayer-dev-eng mailing list