summaryrefslogtreecommitdiff
path: root/toxav/codec.c
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2015-04-07 01:24:36 +0200
committermannol <eniz_vukovic@hotmail.com>2015-04-07 01:24:36 +0200
commitbf9f7e2ae8dc5f1b83c45e383ec70cb08c4caf5f (patch)
treef4b207c229396f7121872c52e8ac047def6d8cf2 /toxav/codec.c
parent62c4fd7409c47a30a8290c0bd1c486ad4b4b1973 (diff)
Video works but there is one deadlock left and video replay is slow
Diffstat (limited to 'toxav/codec.c')
-rw-r--r--toxav/codec.c2
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;