-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ToxAv's use of struct Tox
.
#1064
Conversation
a1a9b19
to
71f66d8
Compare
toxav_get_tox
to return tox, not messenger.struct Tox
.
ddc3b60
to
30d6976
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 LGTMs obtained (waiting on @zoff99)
toxav/video.c, line 348 at r1 (raw file):
for (vpx_image_t *dest = vpx_codec_get_frame(vc->decoder, &iter); dest != nullptr; dest = vpx_codec_get_frame(vc->decoder, &iter)) {
be very careful with this loop. it works against common logic. i ran into problems here before. tbh i would not change this one for the moment, and just mark it TODO.
this needs to be tested with Video tests, to see if u are getting double or empty frames.
d07c736
to
01e2eac
Compare
* Fix `toxav_get_tox` to return tox, not messenger. * Fix the casts from Tox* to Messenger* in toxav_old.c. * Pass Tox instead of Messenger to public group AV callbacks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 change requests, 0 of 1 approvals obtained (waiting on @zoff99)
toxav/video.c, line 348 at r1 (raw file):
Previously, zoff99 (Zoff) wrote…
be very careful with this loop. it works against common logic. i ran into problems here before. tbh i would not change this one for the moment, and just mark it TODO.
this needs to be tested with Video tests, to see if u are getting double or empty frames.
Moved it out to a different PR.
The code this comment was about has moved to a different PR.
This change is