const int stride = video_frame->GetRowBytes();
const BMDPixelFormat format = video_frame->GetPixelFormat();
assert(format == pixel_format_to_bmd(current_pixel_format));
const int stride = video_frame->GetRowBytes();
const BMDPixelFormat format = video_frame->GetPixelFormat();
assert(format == pixel_format_to_bmd(current_pixel_format));
memcpy(current_audio_frame.data, src, current_audio_frame.len);
audio_format.bits_per_sample = 32;
memcpy(current_audio_frame.data, src, current_audio_frame.len);
audio_format.bits_per_sample = 32;
fprintf(stderr, "Failed to set video mode 0x%04x for card %d\n", current_video_mode, card_index);
abort();
}
fprintf(stderr, "Failed to set video mode 0x%04x for card %d\n", current_video_mode, card_index);
abort();
}
// We could call DisableVideoInput() and DisableAudioInput() here,
// but they seem to be taking a really long time, and we only do this
// 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, so StopStreams() will suffice.
+ // during shutdown anyway (except when switching to output mode,
+ // where DeckLinkOutput does the disabling), so StopStreams() will suffice.