From a34c3d3484e781d26f55f2629e0a92de70e24f0e Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sun, 12 Dec 1999 08:49:19 +0000 Subject: Version 0.1.1 from FTP git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@135 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- codecs/codec_g723_1.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'codecs/codec_g723_1.c') diff --git a/codecs/codec_g723_1.c b/codecs/codec_g723_1.c index d33ba8783..89d2be760 100755 --- a/codecs/codec_g723_1.c +++ b/codecs/codec_g723_1.c @@ -7,7 +7,7 @@ * it is covered with patents, and in spite of statements to the contrary, * the "technology" is extremely expensive to license. * - * Copyright (C) 1999, Adtran Inc. and Linux Support Services, LLC + * Copyright (C) 1999, Mark Spencer * * Mark Spencer * @@ -99,6 +99,8 @@ static struct ast_translator_pvt *g723tolin_new() Init_Decod(&tmp->dec); Init_Dec_Cng(&tmp->dec); tmp->tail = 0; + localusecnt++; + ast_update_use_count(); } return (struct ast_translator_pvt *)tmp; } @@ -144,6 +146,8 @@ static struct ast_translator_pvt *lintog723_new() Init_Vad(&tmp->cod); Init_Cod_Cng(&tmp->cod); } + localusecnt++; + ast_update_use_count(); tmp->tail = 0; } return (struct ast_translator_pvt *)tmp; @@ -291,6 +295,8 @@ static struct ast_frame *lintog723_frameout(struct ast_translator_pvt *pvt) static void g723_destroy(struct ast_translator_pvt *pvt) { free(pvt); + localusecnt--; + ast_update_use_count(); } static struct ast_translator g723tolin = -- cgit v1.2.3