[vlc-devel] commit: Use NULL instead of 0. ( Rémi Duraffort )
git version control
git at videolan.org
Wed Dec 17 21:51:51 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Dec 17 21:31:01 2008 +0100| [acb6094927afb13a30551c170401e5fd4df6b51f] | committer: Rémi Duraffort
Use NULL instead of 0.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=acb6094927afb13a30551c170401e5fd4df6b51f
---
modules/access/dshow/crossbar.cpp | 10 +++++-----
modules/access/dshow/dshow.cpp | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/modules/access/dshow/crossbar.cpp b/modules/access/dshow/crossbar.cpp
index 41898bc..18b4878 100644
--- a/modules/access/dshow/crossbar.cpp
+++ b/modules/access/dshow/crossbar.cpp
@@ -59,9 +59,9 @@ static HRESULT GetCrossbarIPinAtIndex( IAMCrossbar *pXbar, LONG PinIndex,
BOOL IsInputPin, IPin ** ppPin )
{
LONG cntInPins, cntOutPins;
- IPin *pP = 0;
+ IPin *pP = NULL;
IBaseFilter *pFilter = NULL;
- IEnumPins *pins=0;
+ IEnumPins *pins = NULL;
ULONG n;
if( !pXbar || !ppPin ) return E_POINTER;
@@ -102,9 +102,9 @@ static HRESULT GetCrossbarIndexFromIPin( IAMCrossbar * pXbar, LONG * PinIndex,
BOOL IsInputPin, IPin * pPin )
{
LONG cntInPins, cntOutPins;
- IPin *pP = 0;
+ IPin *pP = NULL;
IBaseFilter *pFilter = NULL;
- IEnumPins *pins = 0;
+ IEnumPins *pins = NULL;
ULONG n;
BOOL fOK = FALSE;
@@ -159,7 +159,7 @@ HRESULT FindCrossbarRoutes( vlc_object_t *p_this, access_sys_t *p_sys,
return S_FALSE;
}
- IAMCrossbar *pXbar=0;
+ IAMCrossbar *pXbar = NULL;
if( FAILED(pinInfo.pFilter->QueryInterface(IID_IAMCrossbar,
(void **)&pXbar)) )
{
diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp
index 8d24171..6e7a7c6 100644
--- a/modules/access/dshow/dshow.cpp
+++ b/modules/access/dshow/dshow.cpp
@@ -432,7 +432,7 @@ static int CommonOpen( vlc_object_t *p_this, access_sys_t *p_sys,
/* Initialize some data */
p_sys->i_streams = 0;
- p_sys->pp_streams = 0;
+ p_sys->pp_streams = NULL;
p_sys->i_width = i_width;
p_sys->i_height = i_height;
p_sys->i_chroma = i_chroma;
@@ -782,16 +782,16 @@ static bool ConnectFilters( vlc_object_t *p_this, access_sys_t *p_sys,
// Sort out all the possible video inputs
// The class needs to be given the capture filters ANALOGVIDEO input pin
- IEnumPins *pins = 0;
+ IEnumPins *pins = NULL;
if( ( mediaType.majortype == MEDIATYPE_Video ||
mediaType.majortype == MEDIATYPE_Stream ) &&
SUCCEEDED(p_filter->EnumPins(&pins)) )
{
- IPin *pP = 0;
+ IPin *pP = NULL;
ULONG n;
PIN_INFO pinInfo;
BOOL Found = FALSE;
- IKsPropertySet *pKs=0;
+ IKsPropertySet *pKs = NULL;
GUID guid;
DWORD dw;
@@ -1706,7 +1706,7 @@ static block_t *ReadCompressed( access_t *p_access )
return p_block;
}
- return 0; /* never reached */
+ return NULL; /* never reached */
}
/****************************************************************************
More information about the vlc-devel
mailing list