[MPlayer-dev-eng] fbdev multi-file bug

Alan Curry pacman at TheWorld.com
Tue Mar 14 22:33:16 CET 2006


mplayer -vm -vo fbdev *.avi doesn't work - the first file plays, but the rest
fail because on the second call to config(), fbdev calls parse_fbmode_cfg()
again and it can't handle being called twice.

Index: libvo/vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.94
diff -u -r1.94 vo_fbdev.c
--- libvo/vo_fbdev.c	4 Mar 2006 20:00:06 -0000	1.94
+++ libvo/vo_fbdev.c	14 Mar 2006 21:16:44 -0000
@@ -162,6 +162,10 @@
 	int in_mode_def = 0;
 	int tmp, i;
 
+	/* If called more than once, reuse parsed data */
+	if (nr_modes)
+		return nr_modes;
+
 	mp_msg(MSGT_VO, MSGL_V, "Reading %s: ", cfgfile);
 
 	if ((fp = fopen(cfgfile, "r")) == NULL) {




More information about the MPlayer-dev-eng mailing list