diff options
Diffstat (limited to 'codecs/codec_adpcm.c')
-rwxr-xr-x | codecs/codec_adpcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/codecs/codec_adpcm.c b/codecs/codec_adpcm.c index 641f28b7e..584538367 100755 --- a/codecs/codec_adpcm.c +++ b/codecs/codec_adpcm.c @@ -28,7 +28,7 @@ #define BUFFER_SIZE 8096 /* size for the translation buffers */ -static pthread_mutex_t localuser_lock = AST_MUTEX_INITIALIZER; +static ast_mutex_t localuser_lock = AST_MUTEX_INITIALIZER; static int localusecnt = 0; static char *tdesc = "Adaptive Differential PCM Coder/Decoder"; @@ -500,13 +500,13 @@ int unload_module (void) { int res; - ast_pthread_mutex_lock (&localuser_lock); + ast_mutex_lock (&localuser_lock); res = ast_unregister_translator (&lintoadpcm); if (!res) res = ast_unregister_translator (&adpcmtolin); if (localusecnt) res = -1; - ast_pthread_mutex_unlock (&localuser_lock); + ast_mutex_unlock (&localuser_lock); return res; } |