]> git.sesse.net Git - nageru/commitdiff
Small stylistic cleanup.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Jun 2020 19:29:04 +0000 (21:29 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Jun 2020 19:29:04 +0000 (21:29 +0200)
nageru/mixer.cpp

index e61ece2c8158a3a9b7585dca08b87b4429c18691..1c64c985e1e719a09402f8392d487755f1ff2d92 100644 (file)
@@ -631,8 +631,7 @@ void Mixer::configure_card(unsigned card_index, CaptureInterface *capture, CardT
                assert(card_type == CardType::FFMPEG_INPUT);
        }
 
-       DeviceSpec device;
-       device = DeviceSpec{InputSourceType::CAPTURE_CARD, card_index};
+       DeviceSpec device{InputSourceType::CAPTURE_CARD, card_index};
        unsigned num_channels = card_type == CardType::LIVE_CARD ? 8 : 2;
        if (is_active) {
                audio_mixer->set_device_parameters(device, card->capture->get_description(), card_type, num_channels, /*active=*/true);