diff options
author | Mark Spencer <markster@digium.com> | 2001-04-03 18:38:37 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2001-04-03 18:38:37 +0000 |
commit | 5f80ce7975397d9b771ab5817793240199bcbeba (patch) | |
tree | ef59618ca69feea7194e46c7392abcc10884484d /codecs/codec_lpc10.c | |
parent | 832e39f98fac5ebe635a3d24030b6f828dc4ebf3 (diff) |
Version 0.1.8 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs/codec_lpc10.c')
-rwxr-xr-x | codecs/codec_lpc10.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |