[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.71,1.72

Arpi arpi at thot.banki.hu
Wed Mar 13 00:40:01 CET 2002


Hi,

> +            if(priv->dblit) {
> +                if(mpi->type == MP_IMGTYPE_STATIC && (priv->surface->flags 
> & SDL_DOUBLEBUF))
> +                    return VO_FALSE;
> +                
> +                mpi->planes[0] = priv->surface->pixels + priv->y*priv->surf
> ace->pitch;
> +                mpi->stride[0] = priv->surface->pitch;
> +            }

hmm. does dblit mean writting directly to video memory?
then we should add here:
  if(mpi->flags&&MP_IMGFLAG_READABLE) return VO_FALSE;
to avoid (sloooooow) reading from video memory


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-cvslog mailing list