diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-08-26 20:34:26 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-09-03 20:03:47 +0000 |
commit | 6872c14e1a02445d945623ee6e85230c5d7ecbce (patch) | |
tree | 30d90b93445976e56b96946b6e87b764eddd48a8 /toxav/video.h | |
parent | d296490a742b226fc17a71cf96ab73fc16719b20 (diff) |
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.
Diffstat (limited to 'toxav/video.h')
-rw-r--r-- | toxav/video.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
60 | pthread_mutex_t queue_mutex[1]; | 60 | pthread_mutex_t queue_mutex[1]; |
61 | } VCSession; | 61 | } VCSession; |
62 | 62 | ||
63 | VCSession *vc_new(const Mono_Time *mono_time, const Logger *log, ToxAV *av, uint32_t friend_number, | 63 | VCSession *vc_new(Mono_Time *mono_time, const Logger *log, ToxAV *av, uint32_t friend_number, |
64 | toxav_video_receive_frame_cb *cb, void *cb_data); | 64 | toxav_video_receive_frame_cb *cb, void *cb_data); |
65 | void vc_kill(VCSession *vc); | 65 | void vc_kill(VCSession *vc); |
66 | void vc_iterate(VCSession *vc); | 66 | void vc_iterate(VCSession *vc); |
67 | int vc_queue_message(const Mono_Time *mono_time, void *vcp, struct RTPMessage *msg); | 67 | int vc_queue_message(Mono_Time *mono_time, void *vcp, struct RTPMessage *msg); |
68 | int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height, int16_t kf_max_dist); | 68 | int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height, int16_t kf_max_dist); |
69 | 69 | ||
70 | #endif /* VIDEO_H */ | 70 | #endif /* VIDEO_H */ |