summaryrefslogtreecommitdiff
path: root/toxav/video.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-06-23 17:16:28 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-06-24 19:17:32 +0000
commit8e00294b3cb9808ce55160240454359638178275 (patch)
tree095a7708b3fe3566951ebe7b068ee66a8beed3c1 /toxav/video.c
parent5a8790eab0ed9421445adce40526462b9e6742c3 (diff)
Add Logger to various net_crypto functions.
In preparation for adding log statements. Also, fix an uninitialised variable warning in cppcheck.
Diffstat (limited to 'toxav/video.c')
-rw-r--r--toxav/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxav/video.c b/toxav/video.c
index 8c31cf75..1126b8e6 100644
--- a/toxav/video.c
+++ b/toxav/video.c
@@ -83,7 +83,7 @@
83#define VPX_MAX_DECODER_THREADS 4 83#define VPX_MAX_DECODER_THREADS 4
84#define VIDEO__VP8_DECODER_POST_PROCESSING_ENABLED 0 84#define VIDEO__VP8_DECODER_POST_PROCESSING_ENABLED 0
85 85
86static void vc_init_encoder_cfg(Logger *log, vpx_codec_enc_cfg_t *cfg, int16_t kf_max_dist) 86static void vc_init_encoder_cfg(const Logger *log, vpx_codec_enc_cfg_t *cfg, int16_t kf_max_dist)
87{ 87{
88 vpx_codec_err_t rc = vpx_codec_enc_config_default(VIDEO_CODEC_ENCODER_INTERFACE, cfg, 0); 88 vpx_codec_err_t rc = vpx_codec_enc_config_default(VIDEO_CODEC_ENCODER_INTERFACE, cfg, 0);
89 89
@@ -152,7 +152,7 @@ static void vc_init_encoder_cfg(Logger *log, vpx_codec_enc_cfg_t *cfg, int16_t k
152#endif 152#endif
153} 153}
154 154
155VCSession *vc_new(Logger *log, ToxAV *av, uint32_t friend_number, toxav_video_receive_frame_cb *cb, void *cb_data) 155VCSession *vc_new(const Logger *log, ToxAV *av, uint32_t friend_number, toxav_video_receive_frame_cb *cb, void *cb_data)
156{ 156{
157 VCSession *vc = (VCSession *)calloc(sizeof(VCSession), 1); 157 VCSession *vc = (VCSession *)calloc(sizeof(VCSession), 1);
158 vpx_codec_err_t rc; 158 vpx_codec_err_t rc;