From a5b1bda5146c84619a668433483b04ed02376304 Mon Sep 17 00:00:00 2001 From: faust3 Date: Wed, 7 Apr 2004 22:51:42 +0000 Subject: 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 --- libvo/vo_directx.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvo') diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index fba987ddf6..f4b0b7616b 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -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 ,"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) -- cgit v1.2.3