Skip to content

Commit

Permalink
Ignore stream button updates while shutting down
Browse files Browse the repository at this point in the history
  • Loading branch information
palana committed Sep 24, 2014
1 parent c8b7f3e commit 044fac9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/OBS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,7 @@ void OBS::GetSceneCollection(StringList &sceneCollectionList)

void OBS::RefreshStreamButtons(bool disable)
{
if (bShuttingDown) return;
int networkMode = AppConfig->GetInt(TEXT("Publish"), TEXT("Mode"), 2);
bRecordingOnly = (networkMode == 1);
bool canStream = networkMode == 0 && !bTestStream;
Expand All @@ -1380,6 +1381,7 @@ void OBS::RefreshStreamButtons(bool disable)

void OBS::ConfigureStreamButtons()
{
if (bShuttingDown) return;
RefreshStreamButtons();
SetWindowText(GetDlgItem(hwndMain, ID_STARTSTOP), bStreaming ? Str("MainWindow.StopStream") : Str("MainWindow.StartStream"));
SetWindowText(GetDlgItem(hwndMain, ID_TOGGLERECORDING), bRecording ? Str("MainWindow.StopRecording") : Str("MainWindow.StartRecording"));
Expand Down

0 comments on commit 044fac9

Please sign in to comment.