1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #3376

Colomban Wendling (1):
      fix(video): do not list the same mode twice
This commit is contained in:
sudden6 2016-06-12 22:19:54 +02:00
commit f74ba9131c
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -235,6 +235,10 @@ void AVForm::updateVideoModes(int curIndex)
{
int i = iter->second;
VideoMode mode = allVideoModes[i];
if (videoModes.contains(mode))
continue;
videoModes.append(mode);
if (mode.width==prefRes.width() && mode.height==prefRes.height() && mode.FPS == prefFPS && prefResIndex==-1)
prefResIndex = videoModes.size() - 1;