global_audio_mixer = global_mixer->get_audio_mixer();
global_mainwindow->mixer_created(global_mixer);
global_mixer->start();
global_audio_mixer = global_mixer->get_audio_mixer();
global_mainwindow->mixer_created(global_mixer);
global_mixer->start();
unsigned current_card = global_mixer->map_signal_to_card(signal_num);
bool is_ffmpeg = global_mixer->card_is_ffmpeg(current_card);
if (!is_ffmpeg) { // FFmpeg inputs are not connected to any card; they're locked to a given input and have a given Y'CbCr interpretatio and have a given Y'CbCr interpretation.
unsigned current_card = global_mixer->map_signal_to_card(signal_num);
bool is_ffmpeg = global_mixer->card_is_ffmpeg(current_card);
if (!is_ffmpeg) { // FFmpeg inputs are not connected to any card; they're locked to a given input and have a given Y'CbCr interpretatio and have a given Y'CbCr interpretation.
- for (unsigned card_index = 0; card_index < num_cards; ++card_index) {
+ for (unsigned card_index = 0; card_index < MAX_VIDEO_CARDS; ++card_index) {
+ if (!global_mixer->card_is_active(card_index)) continue;
+ if (global_mixer->card_is_cef(card_index) || global_mixer->card_is_ffmpeg(card_index)) continue;
QString description(QString::fromStdString(global_mixer->get_card_description(card_index)));
QAction *action = new QAction(description, &card_group);
action->setCheckable(true);
QString description(QString::fromStdString(global_mixer->get_card_description(card_index)));
QAction *action = new QAction(description, &card_group);
action->setCheckable(true);
// And a master clock selector.
QAction *master_clock_action = new QAction("Use as master clock", &menu);
master_clock_action->setCheckable(true);
// And a master clock selector.
QAction *master_clock_action = new QAction("Use as master clock", &menu);
master_clock_action->setCheckable(true);
master_clock_action->setChecked(false);
master_clock_action->setEnabled(false);
} else if (global_mixer->get_master_clock() == signal_num) {
master_clock_action->setChecked(false);
master_clock_action->setEnabled(false);
} else if (global_mixer->get_master_clock() == signal_num) {