[Mplayer-cvslog] CVS: main/libvo vo_dga.c,1.33,1.34
Alex Beregszaszi
alex at mplayer.dev.hu
Tue Dec 4 18:24:28 CET 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv18731
Modified Files:
vo_dga.c
Log Message:
do not crash if can't get modelines (dga2.0)
Index: vo_dga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dga.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- vo_dga.c 6 Nov 2001 11:21:08 -0000 1.33
+++ vo_dga.c 4 Dec 2001 17:24:25 -0000 1.34
@@ -23,6 +23,9 @@
* - works only on x86 architectures
*
* $Log$
+ * Revision 1.34 2001/12/04 17:24:25 alex
+ * do not crash if can't get modelines (dga2.0)
+ *
* Revision 1.33 2001/11/06 11:21:08 nick
* Move yuv2rgb to postprocess
*
@@ -859,6 +862,15 @@
// mgraffam at idsi.net
if (modelines==NULL)
modelines=XDGAQueryModes(vo_dga_dpy, XDefaultScreen(vo_dga_dpy),&modecount);
+
+ vd_printf(VD_DBG,
+ "vo_dga: modelines=%p, modecount=%d\n", modelines, modecount);
+
+ if (modelines == NULL)
+ {
+ vd_printf(VD_ERR, "vo_dga: can't get modelines\n");
+ return 1;
+ }
vd_printf(VD_INFO,
"vo_dga: DGA 2.0 available :-) Can switch resolution AND depth!\n");
More information about the MPlayer-cvslog
mailing list