summaryrefslogtreecommitdiff
path: root/toxav/video.h
diff options
context:
space:
mode:
authorGregory Mullen (grayhatter) <greg@grayhatter.com>2016-09-11 16:27:03 -0700
committerGregory Mullen (grayhatter) <greg@grayhatter.com>2016-09-17 14:05:51 -0700
commit21f8db12c45bd56293262cd4abfb73cd9abec821 (patch)
tree580729367d00e1eb7e0c4d533777d22af7d7ffc5 /toxav/video.h
parent5da85c582d97d746887da407153afc0acf0a4215 (diff)
Make ToxAV stateless
Diffstat (limited to 'toxav/video.h')
-rw-r--r--toxav/video.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxav/video.h b/toxav/video.h
index 335240c7..e24d98c9 100644
--- a/toxav/video.h
+++ b/toxav/video.h
@@ -56,14 +56,14 @@ typedef struct VCSession_s {
56 ToxAV *av; 56 ToxAV *av;
57 uint32_t friend_number; 57 uint32_t friend_number;
58 58
59 PAIR(toxav_video_receive_frame_cb *, void *) vcb; /* Video frame receive callback */ 59 toxav_video_receive_frame_cb *on_video_frame; /* Video frame receive callback */
60 60
61 pthread_mutex_t queue_mutex[1]; 61 pthread_mutex_t queue_mutex[1];
62} VCSession; 62} VCSession;
63 63
64VCSession *vc_new(Logger *log, ToxAV *av, uint32_t friend_number, toxav_video_receive_frame_cb *cb, void *cb_data); 64VCSession *vc_new(Logger *log, ToxAV *av, uint32_t friend_number, toxav_video_receive_frame_cb *cb);
65void vc_kill(VCSession *vc); 65void vc_kill(VCSession *vc);
66void vc_iterate(VCSession *vc); 66void vc_iterate(VCSession *vc, void *userdata);
67int vc_queue_message(void *vcp, struct RTPMessage *msg); 67int vc_queue_message(void *vcp, struct RTPMessage *msg);
68int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height); 68int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height);
69 69