decklink: Fix deactivate when not showing
If the option to deactivate when not showing was on, the Decklink input device wouldn't deactivate/activate when hiding/showing.
This commit is contained in:
parent
c2cd372b00
commit
d83f45992a
@ -102,7 +102,7 @@ static void decklink_hide(void *data)
|
||||
DeckLinkInput *decklink = (DeckLinkInput *)data;
|
||||
obs_source_t *source = decklink->GetSource();
|
||||
bool showing = obs_source_showing(source);
|
||||
if (decklink->dwns && showing)
|
||||
if (decklink->dwns && !showing && decklink->Capturing())
|
||||
decklink->Deactivate();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user