]> git.sesse.net Git - nageru/commitdiff
Fix (?) the mode scanning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 17 Apr 2022 15:12:45 +0000 (17:12 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 17 Apr 2022 15:12:45 +0000 (17:12 +0200)
nageru/mixer.cpp

index 5de75c6db2d826c66bbd050e819362d7ca5eeac9..6a2909f6475d5f78f7baa39a4000d2e26832bd4c 100644 (file)
@@ -2027,7 +2027,7 @@ void Mixer::set_input_ycbcr_interpretation(unsigned card_index, const YCbCrInter
 void Mixer::start_mode_scanning(unsigned card_index)
 {
        assert(card_index < MAX_VIDEO_CARDS);
-       if (cards[card_index].capture != nullptr) {
+       if (cards[card_index].capture == nullptr) {
                // Inactive card. Should never happen.
                return;
        }