[Mplayer-cvslog] CVS: main/libvo vo_directx.c,1.27,1.28

Sascha Sommer CVS syncmail at mplayerhq.hu
Thu Apr 8 00:51:45 CEST 2004


CVS change done by Sascha Sommer CVS

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

Modified Files:
	vo_directx.c 
Log Message:
print at least the error number when there is no text for it

Index: vo_directx.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directx.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- vo_directx.c	13 Mar 2004 16:48:52 -0000	1.27
+++ vo_directx.c	7 Apr 2004 22:51:42 -0000	1.28
@@ -272,6 +272,8 @@
 			 {mp_msg(MSGT_VO, MSGL_ERR,"unsupported mode\n");break;}  
 		  case DDERR_OUTOFVIDEOMEMORY:
 			 {mp_msg(MSGT_VO, MSGL_ERR,"not enough video memory\n");break;}
+          default:
+             mp_msg(MSGT_VO, MSGL_ERR,"create surface failed with 0x%x\n",ddrval);       
 	   }
 	   return 1;
 	}
@@ -685,6 +687,8 @@
 					if(ddrval !=DD_OK)mp_msg(MSGT_VO, MSGL_FATAL ,"<vo_directx><FATAL ERROR>UpdateOverlay failed again\n" );
 					break;
 				}
+            default:
+                mp_msg(MSGT_VO, MSGL_ERR ," 0x%x\n",ddrval);      
 		}
 	    /*ok we can't do anything about it -> hide overlay*/
 		if(ddrval != DD_OK)




More information about the MPlayer-cvslog mailing list