diff --git a/libobs/obs-output.c b/libobs/obs-output.c index 62ee4835a..8993ce4c2 100644 --- a/libobs/obs-output.c +++ b/libobs/obs-output.c @@ -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) ? diff --git a/libobs/obs.h b/libobs/obs.h index a82d49789..20a804b9c 100644 --- a/libobs/obs.h +++ b/libobs/obs.h @@ -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);