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

Uoti Urpala uoti.urpala at pp1.inet.fi
Fri May 25 08:30:43 CEST 2007


On Fri, 2007-05-25 at 13:12 +0700, Vladimir Voroshilov wrote:
> 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.

Does the demuxer generate some kind of (empty) frames even when there's
no signal? The OSD is currently only updated when a new frame is drawn.
If there are no video frames then more mainloop changes are required.

If there are frames then I think the architecturally best choice would
be to mark the information in the demuxer packet and check that in the
main loop when reading the packet. Implementing this requires some extra
work though because currently the only extra information in addition to
frame data that is read in the main loop is timestamps, and those are
passed in separate parameters.

Another alternative would be to return frames which contain the "no
signal" text as the picture instead of using OSD.




More information about the MPlayer-dev-eng mailing list