diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-08-12 10:55:20 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-08-12 11:38:23 +0000 |
commit | 1de8b020cb5f79c3e52a0fb502b5abdbbd20a2f0 (patch) | |
tree | afae3b1329d340f92484571676c36a0e0fba836c /toxav/video.c | |
parent | 5d15b5930d2b3e442f3927d72a76dd6a9c3b3357 (diff) |
Remove all uses of the PAIR macro in toxav.
Diffstat (limited to 'toxav/video.c')
-rw-r--r-- | toxav/video.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/toxav/video.c b/toxav/video.c index 6a5672e3..034a8b56 100644 --- a/toxav/video.c +++ b/toxav/video.c | |||
@@ -258,8 +258,8 @@ VCSession *vc_new(const Logger *log, ToxAV *av, uint32_t friend_number, toxav_vi | |||
258 | */ | 258 | */ |
259 | vc->linfts = current_time_monotonic(); | 259 | vc->linfts = current_time_monotonic(); |
260 | vc->lcfd = 60; | 260 | vc->lcfd = 60; |
261 | vc->vcb.first = cb; | 261 | vc->vcb = cb; |
262 | vc->vcb.second = cb_data; | 262 | vc->vcb_user_data = cb_data; |
263 | vc->friend_number = friend_number; | 263 | vc->friend_number = friend_number; |
264 | vc->av = av; | 264 | vc->av = av; |
265 | vc->log = log; | 265 | vc->log = log; |
@@ -337,10 +337,10 @@ void vc_iterate(VCSession *vc) | |||
337 | vpx_image_t *dest = nullptr; | 337 | vpx_image_t *dest = nullptr; |
338 | 338 | ||
339 | while ((dest = vpx_codec_get_frame(vc->decoder, &iter)) != nullptr) { | 339 | while ((dest = vpx_codec_get_frame(vc->decoder, &iter)) != nullptr) { |
340 | if (vc->vcb.first) { | 340 | if (vc->vcb) { |
341 | vc->vcb.first(vc->av, vc->friend_number, dest->d_w, dest->d_h, | 341 | vc->vcb(vc->av, vc->friend_number, dest->d_w, dest->d_h, |
342 | (const uint8_t *)dest->planes[0], (const uint8_t *)dest->planes[1], (const uint8_t *)dest->planes[2], | 342 | (const uint8_t *)dest->planes[0], (const uint8_t *)dest->planes[1], (const uint8_t *)dest->planes[2], |
343 | dest->stride[0], dest->stride[1], dest->stride[2], vc->vcb.second); | 343 | dest->stride[0], dest->stride[1], dest->stride[2], vc->vcb_user_data); |
344 | } | 344 | } |
345 | 345 | ||
346 | vpx_img_free(dest); // is this needed? none of the VPx examples show that | 346 | vpx_img_free(dest); // is this needed? none of the VPx examples show that |