diff options
Diffstat (limited to 'toxav/codec.c')
-rw-r--r-- | toxav/codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxav/codec.c b/toxav/codec.c index 4ae5a10b..c3f5d740 100644 --- a/toxav/codec.c +++ b/toxav/codec.c | |||
@@ -423,7 +423,7 @@ CSession *cs_new(uint32_t peer_video_frame_piece_size) | |||
423 | return NULL; | 423 | return NULL; |
424 | } | 424 | } |
425 | 425 | ||
426 | if (create_recursive_mutex(cs->queue_mutex) != 0) { | 426 | if (pthread_mutex_init(cs->queue_mutex, NULL) != 0) { |
427 | LOGGER_WARNING("Failed to create recursive mutex!"); | 427 | LOGGER_WARNING("Failed to create recursive mutex!"); |
428 | free(cs); | 428 | free(cs); |
429 | return NULL; | 429 | return NULL; |