Commit 42831dfa authored by Sébastien Blin's avatar Sébastien Blin

mediasettings: to_string is undefined for float

Change-Id: Id16ef7f6cdd1f1ce306ec896dbfd17d61a3d4d72
parent f680d74c
......@@ -187,7 +187,7 @@ CppImpl::drawFramerates()
auto deviceSettings = avModel_->getDeviceSettings(currentDevice);
currentChannel =;
currentRes = deviceSettings.size;
currentRate = std::to_string(deviceSettings.rate);
currentRate = std::to_string(static_cast<uint8_t>(deviceSettings.rate));
auto resRates =;
auto it = std::find_if(resRates.begin(), resRates.end(),
[&currentRes](const std::pair<video::Resolution, video::FrameratesList>& element) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment