[MPlayer-cvslog] r28451 - trunk/libvo/vo_direct3d.c

reimar subversion at mplayerhq.hu
Tue Feb 3 11:14:44 CET 2009


Author: reimar
Date: Tue Feb  3 11:14:44 2009
New Revision: 28451

Log:
Fix several return values

Modified:
   trunk/libvo/vo_direct3d.c

Modified: trunk/libvo/vo_direct3d.c
==============================================================================
--- trunk/libvo/vo_direct3d.c	Tue Feb  3 01:12:19 2009	(r28450)
+++ trunk/libvo/vo_direct3d.c	Tue Feb  3 11:14:44 2009	(r28451)
@@ -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();



More information about the MPlayer-cvslog mailing list