Skip to content

Commit 4b0ec17

Browse files
committed
Fix bug where all browser sources would be started when obs starts
instead of only the ones that are visible
1 parent a3bb651 commit 4b0ec17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

obs-browser/main-source.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ static void *browser_source_create(obs_data_t *settings, obs_source_t *source)
133133
{
134134
BrowserSource *browserSource = new BrowserSource(settings, source);
135135

136+
if (browserSource->GetShutdown() && !obs_source_showing(source))
137+
BrowserManager::Instance()->DestroyBrowser(browserSource->GetBrowserIdentifier());
138+
136139
return browserSource;
137140
}
138141

0 commit comments

Comments
 (0)