diff options
Diffstat (limited to 'apps/app_intercom.c')
-rwxr-xr-x | apps/app_intercom.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_intercom.c b/apps/app_intercom.c index bf139e0b9..c4be328dd 100755 --- a/apps/app_intercom.c +++ b/apps/app_intercom.c @@ -52,26 +52,26 @@ STANDARD_LOCAL_USER; LOCAL_USER_DECL; -static pthread_mutex_t sound_lock = AST_MUTEX_INITIALIZER; +static ast_mutex_t sound_lock = AST_MUTEX_INITIALIZER; static int sound = -1; static int write_audio(short *data, int len) { int res; struct audio_buf_info info; - ast_pthread_mutex_lock(&sound_lock); + ast_mutex_lock(&sound_lock); if (sound < 0) { ast_log(LOG_WARNING, "Sound device closed?\n"); - ast_pthread_mutex_unlock(&sound_lock); + ast_mutex_unlock(&sound_lock); return -1; } if (ioctl(sound, SNDCTL_DSP_GETOSPACE, &info)) { ast_log(LOG_WARNING, "Unable to read output space\n"); - ast_pthread_mutex_unlock(&sound_lock); + ast_mutex_unlock(&sound_lock); return -1; } res = write(sound, data, len); - ast_pthread_mutex_unlock(&sound_lock); + ast_mutex_unlock(&sound_lock); return res; } |