aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codec_g723_1.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-12-12 08:49:19 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-12-12 08:49:19 +0000
commit62474f51d097308f1efd34af6be1902e7aac4b81 (patch)
tree91595c2babd8f2df982aaf130ce18ccd8b6b7381 /codecs/codec_g723_1.c
parent201849f9224ef840d3701ae6e92f3b71ab63f47b (diff)
Version 0.1.1 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_g723_1.c')
-rwxr-xr-xcodecs/codec_g723_1.c8
1 files changed, 7 insertions, 1 deletions
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 <markster@linux-support.net>
*
@@ -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 =