aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codec_g723_1.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-04 22:05:25 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-04 22:05:25 +0000
commiteb98f78434a43ea92daf9de156fd77ad388e615a (patch)
tree15c121b75268737e47fc6bcafce453535af997d0 /codecs/codec_g723_1.c
parent81bd6022a7a2148e1e15c673864076746e9155e6 (diff)
Version 0.1.8 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@264 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_g723_1.c')
-rwxr-xr-xcodecs/codec_g723_1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/codecs/codec_g723_1.c b/codecs/codec_g723_1.c
index cbc2e63a9..848e0c858 100755
--- a/codecs/codec_g723_1.c
+++ b/codecs/codec_g723_1.c
@@ -23,6 +23,7 @@
#include <asterisk/translate.h>
#include <asterisk/module.h>
#include <asterisk/logger.h>
+#include <asterisk/channel.h>
#include <pthread.h>
#include <fcntl.h>
#include <stdlib.h>
@@ -357,13 +358,13 @@ static struct ast_translator lintog723 =
int unload_module(void)
{
int res;
- pthread_mutex_lock(&localuser_lock);
+ ast_pthread_mutex_lock(&localuser_lock);
res = ast_unregister_translator(&lintog723);
if (!res)
res = ast_unregister_translator(&g723tolin);
if (localusecnt)
res = -1;
- pthread_mutex_unlock(&localuser_lock);
+ ast_pthread_mutex_unlock(&localuser_lock);
return res;
}