obs-ffmpeg: Check for replay buffer button press

The replay buffer was triggering on both button press and button
release, which is redundant.
This commit is contained in:
jp9000 2019-07-05 06:46:32 -07:00
parent be8c063346
commit 8caa4f938c

View File

@ -541,6 +541,9 @@ static void replay_buffer_hotkey(void *data, obs_hotkey_id id,
UNUSED_PARAMETER(hotkey);
UNUSED_PARAMETER(pressed);
if (!pressed)
return;
struct ffmpeg_muxer *stream = data;
if (os_atomic_load_bool(&stream->active))
stream->save_ts = os_gettime_ns() / 1000LL;