diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-03 10:14:44 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-03 10:14:44 +0000 |
commit | ad8c8f6f28eda527dba28b57496fa5284d68cab1 (patch) | |
tree | 2b4d0421264cfc72a48e5046c273327c8eb99411 /libvo | |
parent | a019ba3643001e90a53d31d05129ad43e4fd6f15 (diff) |
Fix several return values
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28451 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_direct3d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_direct3d.c b/libvo/vo_direct3d.c index e212b966fd..64b84e01a6 100644 --- a/libvo/vo_direct3d.c +++ b/libvo/vo_direct3d.c @@ -437,7 +437,7 @@ static int configure_d3d(void) if (FAILED(IDirect3DDevice9_SetViewport(priv->d3d_device, &vp))) { mp_msg(MSGT_VO, MSGL_ERR, "<vo_direct3d>Unable to set the viewport\n"); - return VO_ERROR; + return 0; } calc_fs_rect(); @@ -468,7 +468,7 @@ static int reconfigure_d3d(void) priv->d3d_handle = Direct3DCreate9(D3D_SDK_VERSION); if (!priv->d3d_handle) { mp_msg(MSGT_VO, MSGL_ERR, "<vo_direct3d>Unable to initialize Direct3D\n"); - return -1; + return 0; } /* Configure Direct3D */ @@ -519,7 +519,7 @@ static int resize_d3d(void) if (FAILED(IDirect3DDevice9_SetViewport(priv->d3d_device, &vp))) { mp_msg(MSGT_VO, MSGL_ERR, "<vo_direct3d>Unable to set the viewport\n"); - return VO_ERROR; + return 0; } calc_fs_rect(); |