diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-12-02 09:40:09 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-12-02 09:40:09 +0000 |
commit | ef4313fd774e0ae1ba31671f296d27db0895d44e (patch) | |
tree | 71f91ed2390d476fa0ec866ff14084fe74691e56 | |
parent | e84d33f00f257ed9dfda51996dc8456c69892b8b (diff) | |
download | mpv-ef4313fd774e0ae1ba31671f296d27db0895d44e.tar.bz2 mpv-ef4313fd774e0ae1ba31671f296d27db0895d44e.tar.xz |
Consistency cosmetics: do not compare against NULL in ifs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28062 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_direct3d.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libvo/vo_direct3d.c b/libvo/vo_direct3d.c index 46df4729ea..33c4f36fc1 100644 --- a/libvo/vo_direct3d.c +++ b/libvo/vo_direct3d.c @@ -180,12 +180,12 @@ static void destroy_d3d_surfaces(void) priv->locked_rect.pBits = NULL; } - if (priv->d3d_surface != NULL) { + if (priv->d3d_surface) { IDirect3DSurface9_Release(priv->d3d_surface); priv->d3d_surface = NULL; } - if (priv->d3d_backbuf != NULL) { + if (priv->d3d_backbuf) { IDirect3DSurface9_Release(priv->d3d_backbuf); priv->d3d_backbuf = NULL; } @@ -298,7 +298,7 @@ static int reconfigure_d3d(void) destroy_d3d_surfaces(); /* Destroy the D3D Device */ - if (priv->d3d_device != NULL) { + if (priv->d3d_device) { IDirect3DDevice9_Release(priv->d3d_device); priv->d3d_device = NULL; } @@ -367,13 +367,13 @@ static void uninit_d3d(void) destroy_d3d_surfaces(); /* Destroy the D3D Device */ - if (priv->d3d_device != NULL) { + if (priv->d3d_device) { IDirect3DDevice9_Release(priv->d3d_device); priv->d3d_device = NULL; } /* Stop the whole D3D. */ - if (NULL != priv->d3d_handle) { + if (priv->d3d_handle) { mp_msg(MSGT_VO, MSGL_V, "<vo_direct3d>Calling IDirect3D9_Release\r\n"); IDirect3D9_Release(priv->d3d_handle); } @@ -637,7 +637,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, destroy_d3d_surfaces(); /* Destroy the D3D Device */ - if (priv->d3d_device != NULL) { + if (priv->d3d_device) { IDirect3DDevice9_Release(priv->d3d_device); priv->d3d_device = NULL; } |