Preserve complete generated decoder probe byte arrays

This commit is contained in:
evgeny committed 2026-10-20 00:08:16 +02:00
1 parent 238ebcc751
commit d991b4c63e
2 files changed
+287 -5

No files matched your search

+2 -1
View File
@@ -343,7 +343,8 @@ CallWindow::CallWindow(QWidget* parent)
m_resolution = new QComboBox(this);
auto refreshModes = [this] {
QSize wanted = m_resolution->currentData().toSize();
const int wantedFps = m_resolution->currentData(Qt::UserRole + 1).toInt() ?: 30;
const int previousFps = m_resolution->currentData(Qt::UserRole + 1).toInt();
const int wantedFps = previousFps ? previousFps : 30;
if (wanted.isEmpty()) wanted = QSize(640, 480);
m_resolution->clear();
for (const auto& value : m_camera->currentData(Qt::UserRole + 1).toList()) {