コード例 #1
0
ファイル: TSInfoParser.c プロジェクト: neurocis/sagetv
void ReleaseTSInfoParser( TS_INFO_PARSER *pTSInfoParser )
{
	int i;
	SAGETV_FREE( pTSInfoParser->ts_streams.ts_element );
	SAGETV_FREE( pTSInfoParser->es_streams.es_element );
	SAGETV_FREE( pTSInfoParser->av_streams.av_element );
	for ( i = 0; i<pTSInfoParser->max_stream_num; i++ )
		SAGETV_FREE( pTSInfoParser->es_buffer[i].buffer );
	SAGETV_FREE( pTSInfoParser->es_buffer );
	ReleaseTSFilter( pTSInfoParser->ts_filter );
	SAGETV_FREE( pTSInfoParser );

	SageLog(( _LOG_TRACE, 3, TEXT("TS Info Parser is released  .") ));
}
コード例 #2
0
ファイル: TSChannelParser.c プロジェクト: BOTCrusher/sagetv
void ReleaseTSChannelParser( TS_CHANNEL_PARSER *pTSChannelParser )
{
	int i;

	if ( pTSChannelParser->program_list.program )
		SAGETV_FREE( pTSChannelParser->program_list.program );
	if ( pTSChannelParser->channel_list.channel  )
		SAGETV_FREE( pTSChannelParser->channel_list.channel );
	if ( pTSChannelParser->tune_list.tune  )
		SAGETV_FREE( pTSChannelParser->tune_list.tune );

	SAGETV_FREE( pTSChannelParser->ts_streams.ts_element );
	SAGETV_FREE( pTSChannelParser->es_streams.es_element );
	SAGETV_FREE( pTSChannelParser->av_streams.av_element );
	for ( i = 0; i<pTSChannelParser->max_stream_num; i++ )
		SAGETV_FREE( pTSChannelParser->es_buffer[i].buffer );
		
	SAGETV_FREE( pTSChannelParser->es_buffer );
	ReleaseTSFilter( pTSChannelParser->ts_filter );
	SAGETV_FREE( pTSChannelParser );

	SageLog(( _LOG_TRACE, 3, TEXT("TS Channel Parser is released  .") ));
}