[MPlayer-dev-eng] [PATCH] autodetect screen size for vo_mga fullscreen

D Richard Felker III dalias at aerifal.cx
Wed Jan 30 22:35:04 CET 2002


On Wed, Jan 30, 2002 at 10:09:05PM +0100, Felix Buenemann wrote:
> On Wednesday, 30. January 2002 06:24, Jason Lunz wrote:
> > I liked the TOOLS/mpconsole script, but I think mplayer's vo_mga should
> > be able to detect the screen size if fbset can. So I wrote this patch to
> > make vo_mga autodetect the -screenh and -screenw parameters if they're
> > not specified. The patch is against current CVS, and it works for me.
> >
> The thing about this is, that it makes vo_mga dependent on the 
> framebuffer-device, but vo_mga can operate on virtually anything afaik as it 
> directly speaks to the mgas backend-scaler.

in actuality this shouldn't be a problem, since it looks to me like
the code falls back gracefully if it can't open the fb device.
however, there probably should be a check to make sure the fb device
opened is actually the same card/head as mga_vid is driving, and i'm
not sure how easily this can be done. ideally, mga_vid itself should
be able to report the current display size...

rich




More information about the MPlayer-dev-eng mailing list