[MPlayer-dev-eng] [PATCH] Make Vesa output switch to new VT, helps interaction with X

Jon Burgess mplayer at jburgess.uklinux.net
Wed Apr 2 13:59:39 CEST 2003


I put together the patch below to help address the issues of X not 
redrawing the screen after mplayer finishes playing a movie via the vesa 
output.

Before selecting the vesa output mode it switches to a new virtual 
terminal, which I think makes X notice that it is about to lose control 
of the graphics hardware. Then once the output is finished it closes the 
VT and switches back to the previous terminal and X correctly redraws 
the display.

The code is based on the "openvt" program and it is a bit rough around 
the edges. It messes with stdin & setuid stuff which might cause some 
issues. The code could do with being cleaned up to and made more generic 
to cope with things like multiple VT's and handling VT switching during 
playback. It might be useful for other outputs plugins as well.

Please let me know what you think.

     Jon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mplayer-vt.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030402/65e97bd8/attachment.asc>


More information about the MPlayer-dev-eng mailing list