From bf9f7e2ae8dc5f1b83c45e383ec70cb08c4caf5f Mon Sep 17 00:00:00 2001 From: mannol Date: Tue, 7 Apr 2015 01:24:36 +0200 Subject: Video works but there is one deadlock left and video replay is slow --- toxav/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxav/codec.c') 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) return NULL; } - if (create_recursive_mutex(cs->queue_mutex) != 0) { + if (pthread_mutex_init(cs->queue_mutex, NULL) != 0) { LOGGER_WARNING("Failed to create recursive mutex!"); free(cs); return NULL; -- cgit v1.2.3