Skip to content

Commit 5707626

Browse files
committed
Fix bug that made the source restart on activation, regardless of the setting.
1 parent 51b3570 commit 5707626

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

obs-browser/main-source.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static void browser_source_activate(void *data)
114114
{
115115
BrowserSource *bs = static_cast<BrowserSource *>(data);
116116

117-
//if ( bs->GetShutdown() )
117+
if ( bs->GetShutdown() )
118118
bs->UpdateBrowser();
119119

120120
}
@@ -206,7 +206,7 @@ create_browser_source_info()
206206
browser_source_info.id = "browser_source";
207207
browser_source_info.type = OBS_SOURCE_TYPE_INPUT;
208208
browser_source_info.output_flags = OBS_SOURCE_VIDEO |
209-
OBS_SOURCE_INTERACTION;
209+
OBS_SOURCE_INTERACTION | OBS_SOURCE_DO_NOT_DUPLICATE;
210210
#ifdef __APPLE__
211211
browser_source_info.output_flags |= OBS_SOURCE_CUSTOM_DRAW;
212212
#endif

0 commit comments

Comments
 (0)