1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Disable buggy automatic bitrate adjustements

For some users on poor connections, toxav would suggest lower and lower bitratres until reaching zero and disabling audio/video entirely, toxav would then not raise the bitrate back and the only way to re-enable audio/video would have been to change A/V sources or restart the call

We now log toxav's recommendation, but ignore it
This commit is contained in:
tux3 2015-11-14 23:51:30 +01:00
parent 7639a0cb7a
commit db52ef6e6a
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -594,8 +594,7 @@ void CoreAV::bitrateCallback(ToxAV* toxav, uint32_t friendNum, uint32_t arate, u
Q_ARG(uint32_t, arate), Q_ARG(uint32_t, vrate), Q_ARG(void*, _self));
}
qDebug() << "Bitrate with"<<friendNum<<" is now "<<arate<<"/"<<vrate;
toxav_bit_rate_set(toxav, friendNum, arate, vrate, nullptr);
qDebug() << "Recommended bitrate with"<<friendNum<<" is now "<<arate<<"/"<<vrate<<", ignoring it";
}
void CoreAV::audioFrameCallback(ToxAV *, uint32_t friendNum, const int16_t *pcm,