QComboBox *channel_combo = new QComboBox;
channel_combo->addItem(QString("(none)"));
if (bus.device.type == InputSourceType::CAPTURE_CARD ||
- bus.device.type == InputSourceType::ALSA_INPUT) {
+ bus.device.type == InputSourceType::ALSA_INPUT ||
+ bus.device.type == InputSourceType::FFMPEG_VIDEO_INPUT) {
auto device_it = devices.find(bus.device);
assert(device_it != devices.end());
unsigned num_device_channels = device_it->second.num_channels;
}
channel_combo->setCurrentIndex(bus.source_channel[channel] + 1);
} else {
+ assert(bus.device.type == InputSourceType::SILENCE);
channel_combo->setCurrentIndex(0);
}
connect(channel_combo, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
// The native file dialog uses GTK+, which interferes with CEF's use of the GLib main loop.
QFileDialog::Option options(QFileDialog::DontUseNativeDialog);
#else
- QFileDialog::Option options;
+ QFileDialog::Option options(QFileDialog::Option(0));
#endif
QString filename = QFileDialog::getSaveFileName(this,
"Save input mapping", QString(), tr("Mapping files (*.mapping)"), /*selectedFilter=*/nullptr, options);
// The native file dialog uses GTK+, which interferes with CEF's use of the GLib main loop.
QFileDialog::Option options(QFileDialog::DontUseNativeDialog);
#else
- QFileDialog::Option options;
+ QFileDialog::Option options(QFileDialog::Option(0));
#endif
QString filename = QFileDialog::getOpenFileName(this,
"Load input mapping", QString(), tr("Mapping files (*.mapping)"), /*selectedFilter=*/nullptr, options);