[Mplayer-cvslog] CVS: main/libvo vo_dga.c,1.60,1.61

Alex Beregszaszi alex at mplayerhq.hu
Tue Feb 4 17:15:17 CET 2003


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv13459

Modified Files:
	vo_dga.c 
Log Message:
10l, avoid getting num_of_buffers=0

Index: vo_dga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dga.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- vo_dga.c	11 Nov 2002 15:20:25 -0000	1.60
+++ vo_dga.c	4 Feb 2003 16:14:54 -0000	1.61
@@ -611,10 +611,12 @@
 	else
 		vo_dga_nr_video_buffers = 1;
 
-	vo_dga_current_video_buffer = 0;
-	
-	if(MAX_NR_VIDEO_BUFFERS < vo_dga_nr_video_buffers)
+	if (vo_dga_nr_video_buffers > MAX_NR_VIDEO_BUFFERS)
 		vo_dga_nr_video_buffers = MAX_NR_VIDEO_BUFFERS;
+	if (vo_dga_nr_video_buffers <= 0)
+		vo_dga_nr_video_buffers = 1;
+
+	vo_dga_current_video_buffer = 0;
 	
 	for(i = 0; i < vo_dga_nr_video_buffers; i++)
 	{



More information about the MPlayer-cvslog mailing list