# HG changeset patch # User faust3 # Date 1081378302 0 # Node ID ff9f315741a7129d872451c88d7d8f2fc33d3954 # Parent deb95ac21f14e95b0f5095659c90afe9642b71d5 print at least the error number when there is no text for it diff -r deb95ac21f14 -r ff9f315741a7 libvo/vo_directx.c --- a/libvo/vo_directx.c Wed Apr 07 22:27:33 2004 +0000 +++ b/libvo/vo_directx.c Wed Apr 07 22:51:42 2004 +0000 @@ -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 ,"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)