summaryrefslogtreecommitdiff
path: root/toxav/rtp.h
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/rtp.h
parent62c4fd7409c47a30a8290c0bd1c486ad4b4b1973 (diff)
Video works but there is one deadlock left and video replay is slow
Diffstat (limited to 'toxav/rtp.h')
-rw-r--r--toxav/rtp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/toxav/rtp.h b/toxav/rtp.h
index 3bfbb7af..b47be18a 100644
--- a/toxav/rtp.h
+++ b/toxav/rtp.h
@@ -28,6 +28,18 @@
28 28
29#include "../toxcore/Messenger.h" 29#include "../toxcore/Messenger.h"
30 30
31#define LOGGED_LOCK(mutex) do { \
32 LOGGER_DEBUG("Locking mutex: %p", mutex);\
33 pthread_mutex_lock(mutex);\
34 LOGGER_DEBUG("Locked mutex: %p", mutex);\
35} while(0)
36
37#define LOGGED_UNLOCK(mutex) do { \
38 LOGGER_DEBUG("Unlocking mutex: %p", mutex);\
39 pthread_mutex_unlock(mutex);\
40 LOGGER_DEBUG("Unlocked mutex: %p", mutex);\
41} while(0)
42
31#define MAX_SEQU_NUM 65535 43#define MAX_SEQU_NUM 65535
32#define MAX_RTP_SIZE 65535 44#define MAX_RTP_SIZE 65535
33 45