libobs: Add timeout_sec param to reconnect signal
This optionally allows the front-end to know what the current timeout value in seconds is set to for the reconnection without having to call an extra API function to find that out.
This commit is contained in:
parent
7dd6b1d99a
commit
691d3b4a73
@ -1026,7 +1026,12 @@ static inline void signal_start(struct obs_output *output)
|
||||
|
||||
static inline void signal_reconnect(struct obs_output *output)
|
||||
{
|
||||
do_output_signal(output, "reconnect");
|
||||
struct calldata params = {0};
|
||||
calldata_set_int(¶ms, "timeout_sec",
|
||||
output->reconnect_retry_sec);
|
||||
calldata_set_ptr(¶ms, "output", output);
|
||||
signal_handler_signal(output->context.signals, "reconnect", ¶ms);
|
||||
calldata_free(¶ms);
|
||||
}
|
||||
|
||||
static inline void signal_reconnect_success(struct obs_output *output)
|
||||
|
Loading…
x
Reference in New Issue
Block a user