X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=input_mapping_dialog.cpp;h=e26649d544fea217778145e1b0ea66daecaf019f;hp=9e12c98c46cbd26e3a480a9ec76380faf9f7b8c9;hb=80a2892bbe07a4e065704830e9e7244d2b1139fa;hpb=11a83c8d137baee4852ba23b2db77ab4132fee85 diff --git a/input_mapping_dialog.cpp b/input_mapping_dialog.cpp index 9e12c98..e26649d 100644 --- a/input_mapping_dialog.cpp +++ b/input_mapping_dialog.cpp @@ -148,7 +148,8 @@ void InputMappingDialog::setup_channel_choices_from_bus(unsigned row, const Inpu 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; @@ -159,6 +160,7 @@ void InputMappingDialog::setup_channel_choices_from_bus(unsigned row, const Inpu } channel_combo->setCurrentIndex(bus.source_channel[channel] + 1); } else { + assert(bus.device.type == InputSourceType::SILENCE); channel_combo->setCurrentIndex(0); } connect(channel_combo, static_cast(&QComboBox::currentIndexChanged),