diff options
Diffstat (limited to 'formats')
-rwxr-xr-x | formats/format_g723.c | 3 | ||||
-rwxr-xr-x | formats/format_gsm.c | 3 | ||||
-rwxr-xr-x | formats/format_mp3.c | 3 | ||||
-rwxr-xr-x | formats/format_pcm.c | 3 | ||||
-rwxr-xr-x | formats/format_vox.c | 3 | ||||
-rwxr-xr-x | formats/format_wav_gsm.c | 3 |
6 files changed, 12 insertions, 6 deletions
diff --git a/formats/format_g723.c b/formats/format_g723.c index e93ed0414..c54a640b3 100755 --- a/formats/format_g723.c +++ b/formats/format_g723.c @@ -11,6 +11,7 @@ * the GNU General Public License */ +#include <asterisk/lock.h> #include <asterisk/channel.h> #include <asterisk/file.h> #include <asterisk/logger.h> @@ -44,7 +45,7 @@ struct ast_filestream { static struct ast_filestream *glist = NULL; -static pthread_mutex_t g723_lock = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t g723_lock = AST_MUTEX_INITIALIZER; static int glistcnt = 0; static char *name = "g723sf"; diff --git a/formats/format_gsm.c b/formats/format_gsm.c index 327d5b5c7..1ac986934 100755 --- a/formats/format_gsm.c +++ b/formats/format_gsm.c @@ -11,6 +11,7 @@ * the GNU General Public License */ +#include <asterisk/lock.h> #include <asterisk/channel.h> #include <asterisk/file.h> #include <asterisk/logger.h> @@ -49,7 +50,7 @@ struct ast_filestream { static struct ast_filestream *glist = NULL; -static pthread_mutex_t gsm_lock = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t gsm_lock = AST_MUTEX_INITIALIZER; static int glistcnt = 0; static char *name = "gsm"; diff --git a/formats/format_mp3.c b/formats/format_mp3.c index 83c8e1c46..e1ee08651 100755 --- a/formats/format_mp3.c +++ b/formats/format_mp3.c @@ -11,6 +11,7 @@ * the GNU General Public License */ +#include <asterisk/lock.h> #include <asterisk/channel.h> #include <asterisk/file.h> #include <asterisk/logger.h> @@ -46,7 +47,7 @@ struct ast_filestream { static struct ast_filestream *glist = NULL; -static pthread_mutex_t mp3_lock = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t mp3_lock = AST_MUTEX_INITIALIZER; static int glistcnt = 0; static char *name = "mp3"; diff --git a/formats/format_pcm.c b/formats/format_pcm.c index dfd4ec366..befa05698 100755 --- a/formats/format_pcm.c +++ b/formats/format_pcm.c @@ -11,6 +11,7 @@ * the GNU General Public License */ +#include <asterisk/lock.h> #include <asterisk/channel.h> #include <asterisk/file.h> #include <asterisk/logger.h> @@ -47,7 +48,7 @@ struct ast_filestream { static struct ast_filestream *glist = NULL; -static pthread_mutex_t pcm_lock = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t pcm_lock = AST_MUTEX_INITIALIZER; static int glistcnt = 0; static char *name = "pcm"; diff --git a/formats/format_vox.c b/formats/format_vox.c index 76c002dfc..67934219a 100755 --- a/formats/format_vox.c +++ b/formats/format_vox.c @@ -11,6 +11,7 @@ * the GNU General Public License */ +#include <asterisk/lock.h> #include <asterisk/channel.h> #include <asterisk/file.h> #include <asterisk/logger.h> @@ -49,7 +50,7 @@ struct ast_filestream { static struct ast_filestream *glist = NULL; -static pthread_mutex_t vox_lock = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t vox_lock = AST_MUTEX_INITIALIZER; static int glistcnt = 0; static char *name = "vox"; diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c index 679b714a9..b1a8020d9 100755 --- a/formats/format_wav_gsm.c +++ b/formats/format_wav_gsm.c @@ -11,6 +11,7 @@ * the GNU General Public License */ +#include <asterisk/lock.h> #include <asterisk/channel.h> #include <asterisk/file.h> #include <asterisk/logger.h> @@ -53,7 +54,7 @@ struct ast_filestream { static struct ast_filestream *glist = NULL; -static pthread_mutex_t wav_lock = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t wav_lock = AST_MUTEX_INITIALIZER; static int glistcnt = 0; static char *name = "wav49"; |