mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 07:18:17 +00:00
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:
parent
35d058bcca
commit
a5b1bda514
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user