From 6872c14e1a02445d945623ee6e85230c5d7ecbce Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 26 Aug 2018 20:34:26 +0000 Subject: Avoid use of global mutable state in mono_time on win32. This uses a trick to get read-write access to `this` from a `const` member function, similar to C++ `mutable`, but uglier. --- toxav/video.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxav/video.h') diff --git a/toxav/video.h b/toxav/video.h index 2eee1c05..16f4658b 100644 --- a/toxav/video.h +++ b/toxav/video.h @@ -60,11 +60,11 @@ typedef struct VCSession_s { pthread_mutex_t queue_mutex[1]; } VCSession; -VCSession *vc_new(const Mono_Time *mono_time, const Logger *log, ToxAV *av, uint32_t friend_number, +VCSession *vc_new(Mono_Time *mono_time, const Logger *log, ToxAV *av, uint32_t friend_number, toxav_video_receive_frame_cb *cb, void *cb_data); void vc_kill(VCSession *vc); void vc_iterate(VCSession *vc); -int vc_queue_message(const Mono_Time *mono_time, void *vcp, struct RTPMessage *msg); +int vc_queue_message(Mono_Time *mono_time, void *vcp, struct RTPMessage *msg); int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height, int16_t kf_max_dist); #endif /* VIDEO_H */ -- cgit v1.2.3