changeset 27970:2b6952476210

Fix indentation
author reimar
date Sun, 23 Nov 2008 18:45:01 +0000
parents 7ddd69cf214f
children 916445fad12a
files libvo/vo_direct3d.c
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_direct3d.c	Sun Nov 23 18:42:29 2008 +0000
+++ b/libvo/vo_direct3d.c	Sun Nov 23 18:45:01 2008 +0000
@@ -302,11 +302,11 @@
 
     /* If we're here, then we should lock the rect and copy a packed frame */
     if (!priv->locked_rect.pBits) {
-    if (FAILED(IDirect3DSurface9_LockRect(priv->d3d_surface,
-                                           &priv->locked_rect, NULL, 0))) {
-       mp_msg(MSGT_VO,MSGL_ERR,"<vo_direct3d>Surface lock failure\n");
-       return VO_ERROR;
-    }
+        if (FAILED(IDirect3DSurface9_LockRect(priv->d3d_surface,
+                                               &priv->locked_rect, NULL, 0))) {
+           mp_msg(MSGT_VO,MSGL_ERR,"<vo_direct3d>Surface lock failure\n");
+           return VO_ERROR;
+        }
     }
 
     memcpy_pic(priv->locked_rect.pBits, mpi->planes[0], mpi->stride[0],
@@ -321,8 +321,8 @@
     priv->locked_rect.pBits = NULL;
 
     if (FAILED(IDirect3DDevice9_BeginScene(priv->d3d_device))) {
-       mp_msg(MSGT_VO,MSGL_ERR,"<vo_direct3d>BeginScene failed\n");
-       return VO_ERROR;
+        mp_msg(MSGT_VO,MSGL_ERR,"<vo_direct3d>BeginScene failed\n");
+        return VO_ERROR;
     }
 
     if (FAILED(IDirect3DDevice9_StretchRect(priv->d3d_device,
@@ -607,11 +607,11 @@
 
     /* Lock the offscreen surface if it's not already locked. */
     if (!priv->locked_rect.pBits) {
-    if (FAILED(IDirect3DSurface9_LockRect(priv->d3d_surface,
-                                           &priv->locked_rect, NULL, 0))) {
-        mp_msg(MSGT_VO,MSGL_V,"<vo_direct3d>Surface lock failure\n");
-        return VO_FALSE;
-    }
+        if (FAILED(IDirect3DSurface9_LockRect(priv->d3d_surface,
+                                               &priv->locked_rect, NULL, 0))) {
+            mp_msg(MSGT_VO,MSGL_V,"<vo_direct3d>Surface lock failure\n");
+            return VO_FALSE;
+        }
     }
 
     UVstride = priv->locked_rect.Pitch / 2;