mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-15 20:17:41 -04:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user