* input_ps.c: PS demux and packet management
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: input_ps.c,v 1.18 2001/04/27 19:29:11 massiot Exp $
+ * $Id: input_ps.c,v 1.19 2001/04/27 23:29:14 stef Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Cyril Deguet <asmax@via.ecp.fr>
data_packet_t * p_data;
long l_index;
+ p_cache = (packet_cache_t *)p_packet_cache;
+
#ifdef DEBUG
- if ( (p_cache = (packet_cache_t *)p_packet_cache) == NULL )
+ if ( p_cache == NULL )
{
intf_ErrMsg( "PPacket cache not initialized" );
return NULL;
packet_cache_t * p_cache;
pes_packet_t * p_pes;
+ p_cache = (packet_cache_t *)p_packet_cache;
+
#ifdef DEBUG
- if ( (p_cache = (packet_cache_t *)p_packet_cache) == NULL )
+ if ( p_cache == NULL )
{
intf_ErrMsg( "Packet cache not initialized" );
return NULL;
{
packet_cache_t * p_cache;
+ p_cache = (packet_cache_t *)p_packet_cache;
+
#ifdef DEBUG
- if ( (p_cache = (packet_cache_t *)p_packet_cache) == NULL )
+ if ( p_cache == NULL )
{
intf_ErrMsg( "Packet cache not initialized" );
return;
data_packet_t * p_data;
data_packet_t * p_next;
+ p_cache = (packet_cache_t *)p_packet_cache;
+
#ifdef DEBUG
- if ( (p_cache = (packet_cache_t *)p_packet_cache) == NULL )
+ if ( p_cache == NULL )
{
intf_ErrMsg( "Packet cache not initialized" );
return;