Skip to content
Snippets Groups Projects
Commit c4f78a5d authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Philippe Gorley
Browse files

video: sort frame rates from highest to lowest


Change-Id: Ib98e0e3877b17a1d5653ef617a88a354640cf629
Reviewed-by: default avatarPhilippe Gorley <philippe.gorley@savoirfairelinux.com>
parent 6d5e4c7d
Branches
No related tags found
No related merge requests found
...@@ -69,11 +69,11 @@ d_ptr(new VideoDevicePrivate(this)) ...@@ -69,11 +69,11 @@ d_ptr(new VideoDevicePrivate(this))
} }
} }
// Sort rates in increasing order. // Sort rates in decreasing order.
qSort(res->d_ptr->m_lValidRates.begin(), qSort(res->d_ptr->m_lValidRates.begin(),
res->d_ptr->m_lValidRates.end(), res->d_ptr->m_lValidRates.end(),
[](Video::Rate* rateA, Video::Rate* rateB) { [](Video::Rate* rateA, Video::Rate* rateB) {
return rateA->name().toInt() > rateB->name().toInt(); return rateA->name().toInt() < rateB->name().toInt();
}); });
} }
...@@ -199,7 +199,6 @@ Video::Channel* Video::Device::activeChannel() const ...@@ -199,7 +199,6 @@ Video::Channel* Video::Device::activeChannel() const
return d_ptr->m_pCurrentChannel; return d_ptr->m_pCurrentChannel;
} }
void VideoDevicePrivate::saveIdle() void VideoDevicePrivate::saveIdle()
{ {
m_RequireSave = false; m_RequireSave = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment