[MPlayer-users] mplayer cvs -vo fbdev crashing since revision 1.76

Felix von Leitner leitner at convergence.de
Mon Jan 6 13:25:19 CET 2003


A few days ago, mplayer -vo fbdev stopped working.
I was always using fbdev=nocopy, but removing the nocopy didn't help.
A look at the CVS log reveals that the last change was at 2003/01/03,
which matches the time my troubles started.

gdb says that crash is in fast_memcpy_MMX2.

By the way, here is a patch to enable devfs support in vo_fbdev.

Felix
-------------- next part --------------
Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.76
diff -u -r1.76 vo_fbdev.c
--- vo_fbdev.c	3 Jan 2003 20:46:44 -0000	1.76
+++ vo_fbdev.c	6 Jan 2003 12:30:52 -0000
@@ -692,8 +692,12 @@
 	if (fb_preinit_done)
 		return fb_works;
 
-	if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER")))
-		fb_dev_name = "/dev/fb0";
+	if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) {
+		if (access("/dev/fb/0",R_OK))
+			fb_dev_name = "/dev/fb/0";
+		else
+			fb_dev_name = "/dev/fb0";
+	}
 	if (verbose > 0)
 		printf(FBDEV "using %s\n", fb_dev_name);
 


More information about the MPlayer-users mailing list