mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(avform): display true video height in video mode selection
This commit is contained in:
parent
5324e768c3
commit
192c1e8ff5
|
@ -259,11 +259,9 @@ void AVForm::selectBestModes(QVector<VideoMode> &allVideoModes)
|
|||
[size](VideoMode mode) { return getModeSize(mode) == size; });
|
||||
|
||||
if (result == newVideoModes.end())
|
||||
{
|
||||
newVideoModes.push_back(mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
allVideoModes = newVideoModes;
|
||||
}
|
||||
|
||||
|
@ -281,7 +279,7 @@ void AVForm::fillCameraModesComboBox()
|
|||
qDebug("width: %d, height: %d, FPS: %f, pixel format: %s\n", mode.width, mode.height, mode.FPS, pixelFormat.toStdString().c_str());
|
||||
|
||||
if (mode.height && mode.width)
|
||||
str += QString("%1p").arg(getModeSize(mode));
|
||||
str += QString("%1p").arg(mode.height);
|
||||
else
|
||||
str += tr("Default resolution");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user