decklink: Fix FC<->LFE channel swap for some devices

Fixes mantis issue https://obsproject.com/mantis/view.php?id=1379
For some devices with hdmi input, the Front Center channel and the LFE
channel are swapped. For some others they are not.
To solve the issue a new swap setting is added so that the user can
swap the two channels if needed.
This commit is contained in:
pkv committed 2019-03-03 19:57:27 +01:00
1 parent 748067c930
commit 05508ac895
9 files changed
+64 -19

No files matched your search

+3 -2
View File
@@ -1,4 +1,4 @@
#include "DecklinkInput.hpp"
#include "DecklinkInput.hpp"
#include <util/threading.h>
@@ -61,7 +61,8 @@ bool DeckLinkInput::Activate(DeckLinkDevice *device, long long modeId)
instance->GetActivePixelFormat() == pixelFormat &&
instance->GetActiveColorSpace() == colorSpace &&
instance->GetActiveColorRange() == colorRange &&
instance->GetActiveChannelFormat() == channelFormat)
instance->GetActiveChannelFormat() == channelFormat &&
instance->GetActiveSwapState() == swap)
return false;
}