/***************************************************************************** * Close: clean up the packetizer *****************************************************************************/ static void Close( vlc_object_t *p_this ) { decoder_t *p_dec = (decoder_t*)p_this; decoder_sys_t *p_sys = p_dec->p_sys; block_BytestreamRelease( &p_sys->bytestream ); free( p_sys ); }
/***************************************************************************** * Close: clean up the packetizer *****************************************************************************/ static void Close( vlc_object_t *p_this ) { decoder_t *p_dec = (decoder_t*)p_this; decoder_sys_t *p_sys = p_dec->p_sys; if( p_sys->p_frame ) block_ChainRelease( p_sys->p_frame ); if( p_sys->p_sps ) block_Release( p_sys->p_sps ); if( p_sys->p_pps ) block_Release( p_sys->p_pps ); block_BytestreamRelease( &p_sys->bytestream ); free( p_sys ); }