[MPlayer-users] [PATCH] auto-detect screen resolution with -vo mga
Diego Biurrun
diego at biurrun.de
Thu Feb 7 18:40:28 CET 2002
Hi!
I just applied Jasons patch to my tree and it works great! I use a
Matrox G200. Please include this in mplayer.
Regards
Diego
Jason Lunz writes:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> kinali at gmx.net said:
> > it does, but you have to provide the screen resolution by
> > -screenh, -screenw
>
> I wrote the patch below to fix this. It makes the defaults for -screenh
> and -screenw be detected from the framebuffer device. If there is a
> problem using the framebuffer device, it falls back to the old method.
> If you don't like the defaults detected by this patch, you can still
> override them by using -screenh and -screenw, just like before.
>
> I submitted this on mplayer-dev-eng but it wasn't accepted. Arpi, is
> there a reason for this? Do you want me to move this stuff out of
> vo_mga.c into the option parsing code? or what?
>
> I tested this on two different mga framebuffer resolutions and it
> worked. I tried it without framebuffer with -vo mga, but it was the same
> as not using my patch at all: broken.
>
> the patch is against current cvs.
>
> Jason
More information about the MPlayer-users
mailing list