mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
Remove the weird size stuff from OBS_DECLARE_MODULE
Instead of doing this, just use macros to handle this situation. Also, fix a minor bug in AAC encoder
This commit is contained in:
+5
-1
@@ -256,13 +256,17 @@ struct obs_source_info {
|
||||
void *param);
|
||||
};
|
||||
|
||||
EXPORT void obs_register_source_s(const struct obs_source_info *info,
|
||||
size_t size);
|
||||
|
||||
/**
|
||||
* Regsiters a source definition to the current obs context. This should be
|
||||
* used in obs_module_load.
|
||||
*
|
||||
* @param info Pointer to the source definition structure
|
||||
*/
|
||||
EXPORT void obs_register_source(const struct obs_source_info *info);
|
||||
#define obs_register_source(info) \
|
||||
obs_register_source_s(info, sizeof(struct obs_source_info))
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user