mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-26 01:10:38 -04:00
obs-ffmpeg: Add replay buffer saving output signal
This commit is contained in:
@@ -963,6 +963,7 @@ static void *replay_buffer_create(obs_data_t *settings, obs_output_t *output)
|
||||
|
||||
signal_handler_t *sh = obs_output_get_signal_handler(output);
|
||||
signal_handler_add(sh, "void saved()");
|
||||
signal_handler_add(sh, "void saving(ptr output)");
|
||||
|
||||
return stream;
|
||||
}
|
||||
@@ -1176,6 +1177,12 @@ static void replay_buffer_save(struct ffmpeg_muxer *stream)
|
||||
audio_dts_offsets);
|
||||
}
|
||||
|
||||
calldata_t cd = {0};
|
||||
calldata_set_ptr(&cd, "output", stream->output);
|
||||
signal_handler_t *sh = obs_output_get_signal_handler(stream->output);
|
||||
signal_handler_signal(sh, "saving", &cd);
|
||||
calldata_free(&cd);
|
||||
|
||||
generate_filename(stream, &stream->path, true);
|
||||
|
||||
os_atomic_set_bool(&stream->muxing, true);
|
||||
|
||||
Reference in New Issue
Block a user