예제 #1
0
static void enc_uninit(MSFilter *f){
	EncState *s=(EncState*)f->data;
	bv16_encode_release(s->enc);
	bv16_encode_free(s->enc);
	ms_bufferizer_destroy(s->bufferizer);
	ms_free(s);
}
예제 #2
0
static switch_status_t switch_bv16_destroy(switch_codec_t *codec)
{
	struct bv16_context *context = codec->private_info;

	if (context->encoder_object) {
		bv16_encode_free(context->encoder_object);
	}

	if (context->decoder_object) {
		bv16_decode_free(context->decoder_object);
	}

	codec->private_info = NULL;
	return SWITCH_STATUS_SUCCESS;
}