From c4f78a5d1527661efeb2fd6444ad886d0e7061f2 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Thu, 14 Feb 2019 11:03:33 -0500 Subject: [PATCH] video: sort frame rates from highest to lowest Change-Id: Ib98e0e3877b17a1d5653ef617a88a354640cf629 Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com> --- src/video/device.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/video/device.cpp b/src/video/device.cpp index d3634433..2e48d2be 100644 --- a/src/video/device.cpp +++ b/src/video/device.cpp @@ -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(), res->d_ptr->m_lValidRates.end(), [](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 return d_ptr->m_pCurrentChannel; } - void VideoDevicePrivate::saveIdle() { m_RequireSave = false; -- GitLab