UI: Refactor to make it easier to get service object

Refactors a bit of code to make it easier to get the current stream
service object in the settings
This commit is contained in:
jp9000 committed 2020-11-11 09:48:10 -08:00
1 parent fb7747c56e
commit 005863a346
3 files changed
+8 -7

No files matched your search

+5
View File
@@ -650,3 +650,8 @@ void OBSBasicSettings::UpdateVodTrackSetting()
vodTrack[i]->setChecked((i + 1) == trackIndex);
}
}
OBSService OBSBasicSettings::GetStream1Service()
{
return stream1Changed ? SpawnTempService() : main->GetService();
}