mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 14:40:22 +00:00
DeckLink cap.: use bmdNoVideoInputConversion for check
Although the conversion shouldn't be set (see #215), still a valid value ('none' here) must be used for the check. Fixes #221
This commit is contained in:
@@ -1200,7 +1200,7 @@ vidcap_decklink_init(struct vidcap_params *params, void **state)
|
||||
if (s->conversion_mode) {
|
||||
CALL_AND_CHECK(deckLinkConfiguration->SetInt(bmdDeckLinkConfigVideoInputConversionMode, s->conversion_mode), "Unable to set conversion mode");
|
||||
}
|
||||
|
||||
BMDVideoInputConversionMode supported_conversion_mode = s->conversion_mode ? s->conversion_mode : (BMDVideoInputConversionMode) bmdNoVideoInputConversion;
|
||||
if (s->passthrough) {
|
||||
EXIT_IF_FAILED(deckLinkConfiguration->SetInt(bmdDeckLinkConfigCapturePassThroughMode, s->passthrough), "Unable to set passthrough mode");
|
||||
}
|
||||
@@ -1269,7 +1269,7 @@ vidcap_decklink_init(struct vidcap_params *params, void **state)
|
||||
}
|
||||
BMDPixelFormat pf = it->second;
|
||||
BMD_BOOL supported = 0;
|
||||
EXIT_IF_FAILED(deckLinkInput->DoesSupportVideoMode(s->connection, displayMode->GetDisplayMode(), pf, s->conversion_mode, s->supported_flags, nullptr, &supported), "DoesSupportVideoMode");
|
||||
EXIT_IF_FAILED(deckLinkInput->DoesSupportVideoMode(s->connection, displayMode->GetDisplayMode(), pf, supported_conversion_mode, s->supported_flags, nullptr, &supported), "DoesSupportVideoMode");
|
||||
if (supported) {
|
||||
break;
|
||||
}
|
||||
@@ -1331,7 +1331,7 @@ vidcap_decklink_init(struct vidcap_params *params, void **state)
|
||||
}
|
||||
|
||||
BMD_BOOL supported = 0;
|
||||
EXIT_IF_FAILED(deckLinkInput->DoesSupportVideoMode(s->connection, displayMode->GetDisplayMode(), pf, s->conversion_mode, s->supported_flags, nullptr, &supported), "DoesSupportVideoMode");
|
||||
EXIT_IF_FAILED(deckLinkInput->DoesSupportVideoMode(s->connection, displayMode->GetDisplayMode(), pf, supported_conversion_mode, s->supported_flags, nullptr, &supported), "DoesSupportVideoMode");
|
||||
|
||||
if (!supported) {
|
||||
LOG(LOG_LEVEL_ERROR) << MOD_NAME "Requested display mode not supported with the selected pixel format\n";
|
||||
|
||||
Reference in New Issue
Block a user