Skip to content

Commit

Permalink
decklink: disable keyer
Browse files Browse the repository at this point in the history
  • Loading branch information
deadbeef84 committed May 28, 2024
1 parent 43d0d34 commit 18e0a71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/decklink/consumer/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ struct configuration
{
enum class keyer_t
{
none,
internal_keyer,
external_keyer,
default_keyer = external_keyer
default_keyer = none
};

enum class duplex_t
Expand Down
5 changes: 5 additions & 0 deletions src/modules/decklink/consumer/decklink_consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ void set_keyer(const com_iface_ptr<IDeckLinkProfileAttributes>& attributes,
CASPAR_LOG(error) << print << L" Failed to set key-level to max.";
else
CASPAR_LOG(info) << print << L" Enabled external keyer.";
} else if (keyer == configuration::keyer_t::none) {
if (SUCCEEDED(decklink_keyer->Disable())
CASPAR_LOG(error) << print << L" Failed to disable keyer.";
else
CASPAR_LOG(info) << print << L" Disabled keyer.";
}
}

Expand Down

0 comments on commit 18e0a71

Please sign in to comment.