mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-28 16:12:08 -05:00
UI: Fix crash when pausing/unpausing recording
This commit is contained in:
@@ -9851,7 +9851,8 @@ void OBSBasic::PauseRecording()
|
||||
|
||||
os_atomic_set_bool(&recording_paused, true);
|
||||
|
||||
auto replay = replayBufferButton->second();
|
||||
auto replay = replayBufferButton ? replayBufferButton->second()
|
||||
: nullptr;
|
||||
if (replay)
|
||||
replay->setEnabled(false);
|
||||
|
||||
@@ -9896,7 +9897,8 @@ void OBSBasic::UnpauseRecording()
|
||||
|
||||
os_atomic_set_bool(&recording_paused, false);
|
||||
|
||||
auto replay = replayBufferButton->second();
|
||||
auto replay = replayBufferButton ? replayBufferButton->second()
|
||||
: nullptr;
|
||||
if (replay)
|
||||
replay->setEnabled(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user