Skip to content
Snippets Groups Projects
Commit ffd2e180 authored by Adrien Béraud's avatar Adrien Béraud Committed by gerrit2
Browse files

video_rtp_session: replace std::stoi by ring::stoi

std::stoi is not available on Android

Issue: #78221
Change-Id: I3cf69dba62c8d4e5bf3f946340cd44a8c08a788e
parent 92060d3f
No related branches found
No related tags found
No related merge requests found
......@@ -396,9 +396,9 @@ VideoRtpSession::getVideoBitrateInfo() {
auto codecVideo = std::static_pointer_cast<ring::AccountVideoCodecInfo>(send_.codec);
if (codecVideo) {
videoBitrateInfo_ = {
(unsigned)(std::stoi(codecVideo->getCodecSpecifications()[DRing::Account::ConfProperties::CodecInfo::BITRATE])),
(unsigned)(std::stoi(codecVideo->getCodecSpecifications()[DRing::Account::ConfProperties::CodecInfo::MIN_BITRATE])),
(unsigned)(std::stoi(codecVideo->getCodecSpecifications()[DRing::Account::ConfProperties::CodecInfo::MAX_BITRATE])),
(unsigned)(ring::stoi(codecVideo->getCodecSpecifications()[DRing::Account::ConfProperties::CodecInfo::BITRATE])),
(unsigned)(ring::stoi(codecVideo->getCodecSpecifications()[DRing::Account::ConfProperties::CodecInfo::MIN_BITRATE])),
(unsigned)(ring::stoi(codecVideo->getCodecSpecifications()[DRing::Account::ConfProperties::CodecInfo::MAX_BITRATE])),
videoBitrateInfo_.cptBitrateChecking,
videoBitrateInfo_.maxBitrateChecking,
videoBitrateInfo_.packetLostThreshold,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment