return VLC_EGENERIC;
}
+ /* Allocate the memory needed to store the decoder's structure */
+ p_sys = malloc(sizeof(decoder_sys_t));
+ if( p_sys == NULL )
+ return VLC_ENOMEM;
+
/* Initialise the schroedinger (and hence liboil libraries */
/* This does no allocation and is safe to call */
schro_init();
/* Initialise the schroedinger decoder */
- if( !(p_schro = schro_decoder_new()) ) return VLC_EGENERIC;
-
- /* Allocate the memory needed to store the decoder's structure */
- if( ( p_dec->p_sys = p_sys =
- (decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL )
- return VLC_ENOMEM;
+ if( !(p_schro = schro_decoder_new()) )
+ {
+ free( p_sys );
+ return VLC_EGENERIC;
+ }
+ p_dec->p_sys = p_sys;
p_sys->p_schro = p_schro;
p_sys->p_format = NULL;
p_sys->i_lastpts = -1;
return;
if( p_pic->pf_release ) p_pic->pf_release( p_pic );
+ (void)frame;
}
/*****************************************************************************
return;
block_Release( p_block );
+ (void)buf;
}
/*****************************************************************************
picture_t *p_pic;
block_t *p_block;
uint32_t u_pnum;
- static int drop = 0;
if( !pp_block ) return NULL;
if( b_bail )
break;
}
-
- if( (i_bufused > 0) && (i_bufused < p_block->i_buffer) )
- msg_Err( p_dec, "not submitted everything in p_buffer");
-
-
} while( 0 );
while( 1 )