- 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);
- exit(1);
- }
+
+ // We could call DisableVideoInput() and DisableAudioInput() here,
+ // but they seem to be taking a really long time, and we only do this
+ // during shutdown anyway (except when switching to output mode,
+ // where DeckLinkOutput does the disabling), so StopStreams() will suffice.
+