mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-06 07:36:12 -05:00
decklink: Query for preroll frame count
Three is recommended though, so use at least that many.
This commit is contained in:
@@ -114,6 +114,11 @@ bool DeckLinkDevice::Init()
|
||||
attributes->GetInt(BMDDeckLinkSubDeviceIndex, &subDeviceIndex);
|
||||
attributes->GetInt(BMDDeckLinkNumberOfSubDevices, &numSubDevices);
|
||||
|
||||
if (FAILED(attributes->GetInt(BMDDeckLinkMinimumPrerollFrames,
|
||||
&minimumPrerollFrames))) {
|
||||
minimumPrerollFrames = 3;
|
||||
}
|
||||
|
||||
decklink_string_t decklinkModelName;
|
||||
decklink_string_t decklinkDisplayName;
|
||||
|
||||
@@ -255,6 +260,11 @@ int64_t DeckLinkDevice::GetSubDeviceIndex()
|
||||
return subDeviceIndex;
|
||||
}
|
||||
|
||||
int64_t DeckLinkDevice::GetMinimumPrerollFrames()
|
||||
{
|
||||
return minimumPrerollFrames;
|
||||
}
|
||||
|
||||
const std::string &DeckLinkDevice::GetName(void) const
|
||||
{
|
||||
return name;
|
||||
|
||||
Reference in New Issue
Block a user