summaryrefslogtreecommitdiff
path: root/toxav/video.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-12 14:22:21 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-12 19:54:27 +0000
commit767ccbb387a462c9bc21aaf22d2c3d3358c147b8 (patch)
tree5d4a82aca471f4685be78f937e355705dda8984b /toxav/video.h
parentb2590e2f4482114b9e74895bf80e58f5587a1607 (diff)
Avoid forward declaration of rtp structs.
Forward declarations are problematic, as they easily allow introducing cyclic dependencies.
Diffstat (limited to 'toxav/video.h')
-rw-r--r--toxav/video.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/toxav/video.h b/toxav/video.h
index 19ceb9ba..898c986a 100644
--- a/toxav/video.h
+++ b/toxav/video.h
@@ -24,6 +24,8 @@
24 24
25#include "../toxcore/logger.h" 25#include "../toxcore/logger.h"
26#include "../toxcore/util.h" 26#include "../toxcore/util.h"
27#include "ring_buffer.h"
28#include "rtp.h"
27 29
28#include <vpx/vpx_decoder.h> 30#include <vpx/vpx_decoder.h>
29#include <vpx/vpx_encoder.h> 31#include <vpx/vpx_encoder.h>
@@ -35,9 +37,6 @@
35 37
36#include <pthread.h> 38#include <pthread.h>
37 39
38struct RTPMessage;
39struct RingBuffer;
40
41typedef struct VCSession_s { 40typedef struct VCSession_s {
42 /* encoding */ 41 /* encoding */
43 vpx_codec_ctx_t encoder[1]; 42 vpx_codec_ctx_t encoder[1];