aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-03 18:38:37 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-04-03 18:38:37 +0000
commit81bd6022a7a2148e1e15c673864076746e9155e6 (patch)
treeef59618ca69feea7194e46c7392abcc10884484d /codecs
parent43262aded51ebe1b604c70b5aa39d48ea59a50cf (diff)
Version 0.1.8 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@263 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rwxr-xr-xcodecs/codec_adpcm.c5
-rwxr-xr-xcodecs/codec_gsm.c5
-rwxr-xr-xcodecs/codec_lpc10.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/codecs/codec_adpcm.c b/codecs/codec_adpcm.c
index cd1dfe83d..c2aa090d5 100755
--- a/codecs/codec_adpcm.c
+++ b/codecs/codec_adpcm.c
@@ -16,6 +16,7 @@
#include <asterisk/logger.h>
#include <asterisk/module.h>
#include <asterisk/translate.h>
+#include <asterisk/channel.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <pthread.h>
@@ -498,13 +499,13 @@ int
unload_module (void)
{
int res;
- pthread_mutex_lock (&localuser_lock);
+ ast_pthread_mutex_lock (&localuser_lock);
res = ast_unregister_translator (&lintoadpcm);
if (!res)
res = ast_unregister_translator (&adpcmtolin);
if (localusecnt)
res = -1;
- pthread_mutex_unlock (&localuser_lock);
+ ast_pthread_mutex_unlock (&localuser_lock);
return res;
}
diff --git a/codecs/codec_gsm.c b/codecs/codec_gsm.c
index a26c523f8..35ef9e2d9 100755
--- a/codecs/codec_gsm.c
+++ b/codecs/codec_gsm.c
@@ -22,6 +22,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>
@@ -221,13 +222,13 @@ static struct ast_translator lintogsm =
int unload_module(void)
{
int res;
- pthread_mutex_lock(&localuser_lock);
+ ast_pthread_mutex_lock(&localuser_lock);
res = ast_unregister_translator(&lintogsm);
if (!res)
res = ast_unregister_translator(&gsmtolin);
if (localusecnt)
res = -1;
- pthread_mutex_unlock(&localuser_lock);
+ ast_pthread_mutex_unlock(&localuser_lock);
return res;
}
diff --git a/codecs/codec_lpc10.c b/codecs/codec_lpc10.c
index 9d04fd982..d8baa2458 100755
--- a/codecs/codec_lpc10.c
+++ b/codecs/codec_lpc10.c
@@ -20,6 +20,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>
@@ -333,13 +334,13 @@ static struct ast_translator lintolpc10 =
int unload_module(void)
{
int res;
- pthread_mutex_lock(&localuser_lock);
+ ast_pthread_mutex_lock(&localuser_lock);
res = ast_unregister_translator(&lintolpc10);
if (!res)
res = ast_unregister_translator(&lpc10tolin);
if (localusecnt)
res = -1;
- pthread_mutex_unlock(&localuser_lock);
+ ast_pthread_mutex_unlock(&localuser_lock);
return res;
}