[Mplayer-cvslog] CVS: main/libvo vo_directfb.c,1.4,1.5

Alex Beregszaszi alex at mplayer.dev.hu
Sat Dec 22 01:28:52 CET 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv31322

Modified Files:
	vo_directfb.c 
Log Message:
working with 0.9.6 too (0.9.6 is coming with debian woody)

Index: vo_directfb.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directfb.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vo_directfb.c	18 Dec 2001 21:43:15 -0000	1.4
+++ vo_directfb.c	22 Dec 2001 00:28:49 -0000	1.5
@@ -264,8 +264,13 @@
 		directfb_micro_version);
 	}
 
-        if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) fb_dev_name = "/dev/fb0";
-        DFBCHECK (DirectFBSetOption ("fbdev",fb_dev_name));
+	if ((directfb_major_version >= 0) &&
+	    (directfb_minor_version >= 9) &&
+	    (directfb_micro_version >= 7))
+	{
+    	    if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) fb_dev_name = "/dev/fb0";
+    	    DFBCHECK (DirectFBSetOption ("fbdev",fb_dev_name));
+	}
 
 //	uncomment this if you do not wish to create a new vt for DirectFB
 //       DFBCHECK (DirectFBSetOption ("no-vt-switch",fb_dev_name));




More information about the MPlayer-cvslog mailing list