+ abort();
+ }
+ if (input->DisableVideoInput() != S_OK) {
+ fprintf(stderr, "Failed to disable video input for card %d\n", card_index);
+ exit(1);
+ }
+ if (input->DisableAudioInput() != S_OK) {
+ fprintf(stderr, "Failed to disable audio input for card %d\n", card_index);