summaryrefslogtreecommitdiff
path: root/formats/format_mp3.c
diff options
context:
space:
mode:
Diffstat (limited to 'formats/format_mp3.c')
-rwxr-xr-xformats/format_mp3.c3
1 files changed, 2 insertions, 1 deletions
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";