[MPlayer-cvslog] CVS: main/libvo vo_fbdev.c,1.94,1.95

Alan Curry CVS syncmail at mplayerhq.hu
Mon Mar 20 23:07:33 CET 2006


CVS change done by Alan Curry CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv22122/libvo

Modified Files:
	vo_fbdev.c 
Log Message:
Don't try to parse fb.modes more than once. Fixes playback of multiple files
with mplayer -vm


Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -r1.94 -r1.95
--- vo_fbdev.c	4 Mar 2006 20:00:06 -0000	1.94
+++ vo_fbdev.c	20 Mar 2006 22:07:30 -0000	1.95
@@ -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-cvslog mailing list