Add obs_output_getname
This will get the user-defined name of the output (if any)
This commit is contained in:
parent
de478d3295
commit
267af930ab
@ -133,6 +133,11 @@ void obs_output_destroy(obs_output_t output)
|
||||
}
|
||||
}
|
||||
|
||||
const char *obs_output_getname(obs_output_t output)
|
||||
{
|
||||
return output ? output->context.name : NULL;
|
||||
}
|
||||
|
||||
bool obs_output_start(obs_output_t output)
|
||||
{
|
||||
return (output != NULL) ?
|
||||
|
@ -763,6 +763,8 @@ EXPORT obs_output_t obs_output_create(const char *id, const char *name,
|
||||
obs_data_t settings);
|
||||
EXPORT void obs_output_destroy(obs_output_t output);
|
||||
|
||||
EXPORT const char *obs_output_getname(obs_output_t output);
|
||||
|
||||
/** Starts the output. */
|
||||
EXPORT bool obs_output_start(obs_output_t output);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user