Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-libclient
Commits
5be45ab7
Unverified
Commit
5be45ab7
authored
Nov 13, 2019
by
Sébastien Blin
Browse files
avmodel: sort framerates
Change-Id: Ic07397d26d8b158765ac927c5be03f34b58b7994
parent
bf027509
Changes
1
Show whitespace changes
Inline
Side-by-side
src/avmodel.cpp
View file @
5be45ab7
...
...
@@ -19,6 +19,7 @@
#include "api/avmodel.h"
// Std
#include <algorithm> // std::sort
#include <chrono>
#include <csignal>
#include <iomanip> // for std::put_time
...
...
@@ -249,6 +250,7 @@ AVModel::getDeviceCapabilities(const std::string& deviceId) const
while
(
itRates
.
hasNext
())
{
rates
.
emplace_back
(
itRates
.
next
().
toFloat
());
}
std
::
sort
(
rates
.
begin
(),
rates
.
end
(),
std
::
greater
<
int
>
());
channelCapabilities
.
emplace_back
(
std
::
make_pair
(
resToRates
.
first
.
toStdString
(),
rates
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment