[MPlayer-dev-eng] [PATCH] Make fbdev2 use the -fb command line parameter
Andoni Zubimendi
andoni at lpsat.net
Fri Jun 11 16:04:24 CEST 2004
Hi!
Here's a patch that allows the fbdev2 output driver use the framebuffer
device specified by the -fb parameter. I guess it was defined static by
mistake.
Without this patch the fbdev2 output driver always use /dev/fb0.
Many thanks,
Andoni Zubimendi
-------------- next part --------------
diff -urN mplayer.orig/libvo/vo_fbdev2.c mplayer/libvo/vo_fbdev2.c
--- mplayer.orig/libvo/vo_fbdev2.c 2004-01-10 06:48:14.000000000 -0300
+++ mplayer/libvo/vo_fbdev2.c 2004-06-01 21:05:51.000000000 -0300
@@ -66,7 +66,7 @@
}
}
-static char *fb_dev_name = NULL; // such as /dev/fb0
+extern char *fb_dev_name; // such as /dev/fb0
static int fb_dev_fd; // handle for fb_dev_name
static uint8_t *frame_buffer = NULL; // mmap'd access to fbdev
static uint8_t *center = NULL; // where to begin writing our image (centered?)
More information about the MPlayer-dev-eng
mailing list