# HG changeset patch # User reimar # Date 1233656084 0 # Node ID 0e24a99d51f55e6d33c793b1261638d210e41887 # Parent a5371375a91b61e25ae8e2cd23ac211c5ade7804 Fix several return values diff -r a5371375a91b -r 0e24a99d51f5 libvo/vo_direct3d.c --- a/libvo/vo_direct3d.c Tue Feb 03 00:12:19 2009 +0000 +++ b/libvo/vo_direct3d.c Tue Feb 03 10:14:44 2009 +0000 @@ -437,7 +437,7 @@ if (FAILED(IDirect3DDevice9_SetViewport(priv->d3d_device, &vp))) { mp_msg(MSGT_VO, MSGL_ERR, "Unable to set the viewport\n"); - return VO_ERROR; + return 0; } calc_fs_rect(); @@ -468,7 +468,7 @@ priv->d3d_handle = Direct3DCreate9(D3D_SDK_VERSION); if (!priv->d3d_handle) { mp_msg(MSGT_VO, MSGL_ERR, "Unable to initialize Direct3D\n"); - return -1; + return 0; } /* Configure Direct3D */ @@ -519,7 +519,7 @@ if (FAILED(IDirect3DDevice9_SetViewport(priv->d3d_device, &vp))) { mp_msg(MSGT_VO, MSGL_ERR, "Unable to set the viewport\n"); - return VO_ERROR; + return 0; } calc_fs_rect();