/* 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;
access_sys_t *p_sys;
int i;
- p_sys = (access_sys_t *)malloc( sizeof( access_sys_t ) );
+ p_sys = (access_sys_t*)calloc( 1, sizeof( access_sys_t ) );
if( !p_sys )
return VLC_ENOMEM;
- memset( p_sys, 0, sizeof( access_sys_t ) );
p_demux->p_sys = (demux_sys_t *)p_sys;
if( CommonOpen( p_this, p_sys, true ) != VLC_SUCCESS )
access_t *p_access = (access_t*)p_this;
access_sys_t *p_sys;
- p_access->p_sys = p_sys = (access_sys_t *)malloc( sizeof( access_sys_t ) );
+ p_access->p_sys = p_sys = (access_sys_t*)calloc( 1, sizeof( access_sys_t ) );
if( !p_sys )
return VLC_ENOMEM;
- memset( p_sys, 0, sizeof( access_sys_t ) );
if( CommonOpen( p_this, p_sys, false ) != VLC_SUCCESS )
{
// 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;
return p_block;
}
- return 0; /* never reached */
+ return NULL; /* never reached */
}
/****************************************************************************
break;
/* */
- case ACCESS_GET_MTU:
- pi_int = (int*)va_arg( args, int * );
- *pi_int = 0;
- break;
-
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger( p_access, "dshow-caching" ) * 1000;