Commit 7c87f5e8 authored by Adrien Béraud's avatar Adrien Béraud

video: use high precision to_string for framerate

Change-Id: Iea2f6f9c8fe08eacfcb3acaa055f921daf5ef347
parent 18bddb39
......@@ -83,7 +83,7 @@ public:
auto rates = getRateList(chan, size);
std::vector<std::string> rates_str {rates.size()};
std::transform(rates.begin(), rates.end(), rates_str.begin(),
[](FrameRate r) { return std::to_string(r.real()); });
[](FrameRate r) { return jami::to_string(r.real()); });
cap[chan][sz.str()] = std::move(rates_str);
}
......@@ -124,7 +124,7 @@ public:
std::stringstream video_size;
video_size << max_size.first << "x" << max_size.second;
settings.video_size = video_size.str();
settings.framerate = std::to_string(max_size_rate.real());
settings.framerate = jami::to_string(max_size_rate.real());
JAMI_WARN("Default video settings: %s, %s FPS", settings.video_size.c_str(),
settings.framerate.c_str());
}
......@@ -141,7 +141,7 @@ public:
settings.name = params.name;
settings.channel = params.channel_name;
settings.video_size = sizeToString(params.width, params.height);
settings.framerate = std::to_string(params.framerate.real());
settings.framerate = jami::to_string(params.framerate.real());
return settings;
}
......
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