Decklink separation
This commit is contained in:
@@ -83,6 +83,7 @@ bool OpenGLComposite::InitializeVideoIO()
|
||||
}
|
||||
|
||||
const VideoIOConfiguration videoIOConfig = mRuntimeHost->GetVideoIOConfiguration();
|
||||
const VideoIOBackendDescriptor* backendDescriptor = GetVideoIOBackendDescriptor(videoIOConfig.backendId);
|
||||
mVideoIO = CreateVideoIODevice(videoIOConfig.backendId, initFailureReason);
|
||||
if (!mVideoIO)
|
||||
{
|
||||
@@ -93,8 +94,8 @@ bool OpenGLComposite::InitializeVideoIO()
|
||||
|
||||
if (!mVideoIO->DiscoverDevicesAndModes(videoIOConfig, initFailureReason))
|
||||
{
|
||||
const char* title = initFailureReason == "Please install the Blackmagic DeckLink drivers to use the features of this application."
|
||||
? "This application requires the selected video I/O drivers installed."
|
||||
const char* title = IsVideoIOBackendUnavailableError(videoIOConfig.backendId, initFailureReason) && backendDescriptor != nullptr
|
||||
? backendDescriptor->unavailableTitle
|
||||
: "Video I/O initialization failed";
|
||||
MessageBoxA(NULL, initFailureReason.c_str(), title, MB_OK | MB_ICONERROR);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user