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 committed 2019-07-06 09:27:40 -07:00
1 parent be8c063346
commit 8caa4f938c
1 file changed
+3
+3
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;