(API Change) libobs: Pass type data to get_name callbacks
API changed from: obs_source_info::get_name(void) obs_output_info::get_name(void) obs_encoder_info::get_name(void) obs_service_info::get_name(void) API changed to: obs_source_info::get_name(void *type_data) obs_output_info::get_name(void *type_data) obs_encoder_info::get_name(void *type_data) obs_service_info::get_name(void *type_data) This allows the type data to be used when getting the name of the object (useful for plugin wrappers primarily). NOTE: Though a parameter was added, this is backward-compatible with older plugins due to calling convention. The new parameter will simply be ignored by older plugins, and the stack (if used) will be cleaned up by the caller.
This commit is contained in:
@@ -6,8 +6,9 @@ struct rtmp_custom {
|
||||
char *username, *password;
|
||||
};
|
||||
|
||||
static const char *rtmp_custom_name(void)
|
||||
static const char *rtmp_custom_name(void *unused)
|
||||
{
|
||||
UNUSED_PARAMETER(unused);
|
||||
return obs_module_text("CustomStreamingServer");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user