libobs: Add obs_output_reconnecting func
Returns whether the output is currently in a state of reconnecting or not.
This commit is contained in:
parent
0a7361f4cc
commit
5c773d6807
@ -2115,3 +2115,11 @@ int obs_output_get_connect_time_ms(obs_output_t *output)
|
||||
return output->info.get_connect_time_ms(output->context.data);
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool obs_output_reconnecting(const obs_output_t *output)
|
||||
{
|
||||
if (!obs_output_valid(output, "obs_output_reconnecting"))
|
||||
return false;
|
||||
|
||||
return reconnecting(output);
|
||||
}
|
||||
|
@ -1502,6 +1502,8 @@ EXPORT void obs_output_output_caption_text1(obs_output_t *output,
|
||||
EXPORT float obs_output_get_congestion(obs_output_t *output);
|
||||
EXPORT int obs_output_get_connect_time_ms(obs_output_t *output);
|
||||
|
||||
EXPORT bool obs_output_reconnecting(const obs_output_t *output);
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Functions used by outputs */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user