[MPlayer-dev-eng] [PATCH] Possible SDL aspect bug, quick workaround
D Richard Felker III
dalias at aerifal.cx
Sat Oct 18 22:10:25 CEST 2003
On Sat, Oct 18, 2003 at 02:47:58PM -0400, D Richard Felker III wrote:
> On Sat, Oct 18, 2003 at 06:34:38PM +0200, Fredrik Roubert wrote:
> > On Sat 18 Oct 18:21 MEST 2003, D Richard Felker III wrote:
> >
> > > Huh? The scaling values generated by aspect() are only used when a
> > > hardware scaler is available, or when -zoom and -vf scale are used. At
> > > least that's the way it's supposed to work.
> >
> > Then we have a bug here.
> >
> > > Maybe vo_sdl is broken and thinks it has an overlay because SDL is
> > > emulating it in software or something stupid...
> >
> > Could you check if there is a bug in the SDL code, or tell me how it is
> > supposed to work so that I can track down the bug?
>
> The problem is that vo_sdl's query_format returns true for YUV
> colorspaces without checking whether hardware overlay support is
> present. This should be checked in the preinit function and stored
> somewhere. It's probably a bit of a mess to fix.
>
> IMO vo_sdl is horrible crap and should be rewritten from scratch, but
> that would be a lot of work...
Hmm, looking at the code again, I still think vo_sdl is very bad code,
but the fundamental problem is that SDL sucks. There's no way to tell
in advance (before setting video mode) whether overlay is available!
BTW, why are you trying to use -vo sdl:dga rather than just -vo dga??
Rich
More information about the MPlayer-dev-eng
mailing list