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:
jp9000
2014-04-05 01:45:53 -07:00
parent 7bfe15e4a9
commit bd331c8ffe
6 changed files with 30 additions and 68 deletions
+5 -1
View File
@@ -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
}