print at least the error number when there is no text for it

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12157 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2004-04-07 22:51:42 +00:00
parent 35d058bcca
commit a5b1bda514
1 changed files with 4 additions and 0 deletions

View File

@ -272,6 +272,8 @@ static uint32_t Directx_CreateOverlay(uint32_t imgfmt)
{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 @@ static uint32_t Directx_ManageDisplay()
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)