From b1e6af319c5c555043bd653e6c41dbf77d976b7f Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 18 Jan 2018 14:41:19 -0800 Subject: [PATCH] frontend-tools: Warn if no active replay buffer w/ instant replay --- .../frontend-tools/data/scripts/instant-replay.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/frontend-plugins/frontend-tools/data/scripts/instant-replay.lua b/UI/frontend-plugins/frontend-tools/data/scripts/instant-replay.lua index e100ac7f5..8137990d6 100644 --- a/UI/frontend-plugins/frontend-tools/data/scripts/instant-replay.lua +++ b/UI/frontend-plugins/frontend-tools/data/scripts/instant-replay.lua @@ -70,9 +70,13 @@ function instant_replay(pressed) if obs.obs_output_active(replay_buffer) then attempts = 0 obs.timer_add(try_play, 1000) + else + obs.script_log(obs.LOG_WARNING, "Tried to save an instant replay, but the replay buffer is not active!") end obs.obs_output_release(replay_buffer) + else + obs.script_log(obs.LOG_WARNING, "Tried to save an instant replay, but found no active replay buffer!") end end