Skip to content

Commit a3bb651

Browse files
committed
Add missing code for "shutdown when not active" function
1 parent ec0a7d5 commit a3bb651

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

shared/browser-source.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ void BrowserSource::UpdateSettings(obs_data_t *settings)
2828
width = (uint32_t)obs_data_get_int(settings, "width");
2929
height = (uint32_t)obs_data_get_int(settings, "height");
3030
fps = (uint32_t)obs_data_get_int(settings, "fps");
31+
shutdown = obs_data_get_bool(settings, "shutdown");
3132

3233
UpdateBrowser();
3334
}

shared/browser-source.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class BrowserSource {
4747
uint32_t GetWidth() const { return width; }
4848
uint32_t GetHeight() const { return height; }
4949
obs_source_t *GetSource() const { return source; }
50+
const bool GetShutdown() const { return shutdown; }
5051

5152
int GetBrowserIdentifier() const { return browserIdentifier; }
5253

@@ -78,6 +79,7 @@ class BrowserSource {
7879
uint32_t width;
7980
uint32_t height;
8081
uint32_t fps;
82+
bool shutdown;
8183

8284
int browserIdentifier;
8385

0 commit comments

Comments
 (0)