[MPlayer-dev-eng] [PATCH] directfb2 compilation without fbdev

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Nov 19 20:56:11 CET 2004


Hi,
vo_directfb2 won't work when vo_fbdev isn't compiled, because the
fb_dev_name variable is missing. The attached patch adds it to
vo_directfb2 although it (currently) is not used.
Not sure if that's such a good idea, it might be better to remove the
global fbdev option instead, but that would be more work.

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libvo/vo_directfb2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directfb2.c,v
retrieving revision 1.17
diff -u -r1.17 vo_directfb2.c
--- libvo/vo_directfb2.c	28 Oct 2004 01:15:52 -0000	1.17
+++ libvo/vo_directfb2.c	12 Nov 2004 16:52:24 -0000
@@ -95,6 +95,13 @@
  *  filled during config
  */
 
+//! not used but needed for compilation without fbdev
+#ifdef HAVE_FBDEV
+extern char *fb_dev_name;
+#else
+char *fb_dev_name;
+#endif
+
 // handle of used layer
 static IDirectFBDisplayLayer *layer = NULL;
 // surface of used layer


More information about the MPlayer-dev-eng mailing list