[MPlayer-dev-eng] [PATCH] Basic geometry support for fbdev2

Diego Biurrun diego at biurrun.de
Sun May 27 14:26:24 CEST 2007


On Thu, May 24, 2007 at 01:01:22AM +0200, Damian Kaczmarek wrote:
> I needed to position movies while in framebuffer, so I've made a small 
> patch.
> Shouldn't break anything because the -fs was already doing it the same
> way(-fs in fbdev2 places movie in the center). I also updated the
> english manpage, I hope I don't have to update the rest of them. :-)

You don't need to update all of them, English is fine.

> --- libvo/vo_fbdev2.c	(revision 23379)
> +++ libvo/vo_fbdev2.c	(working copy)
> @@ -186,6 +187,7 @@
>  			fb_vinfo.blue.length;
>  
>  	fb_err = 0;
> +
>  	return 0;
>  err_out:
>  	if (fb_dev_fd >= 0) close(fb_dev_fd);
> @@ -196,11 +198,12 @@
>  
>  static int preinit(const char *subdevice)
>  {
> +
>  	if (subdevice)
>  	{
>  	    if (fb_dev_name) free(fb_dev_name);
>  	    fb_dev_name = strdup(subdevice);
> -	}
> +	}	
>  	return fb_preinit(0);
>  }

cosmetics

Diego



More information about the MPlayer-dev-eng mailing list