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:43:59 -07:00
parent 7bfe15e4a9
commit bd331c8ffe
6 changed files with 30 additions and 68 deletions

View File

@@ -207,10 +207,14 @@ struct obs_encoder_info {
bool (*video_info)(void *data, struct video_scale_info *info);
};
EXPORT void obs_register_encoder_s(const struct obs_encoder_info *info,
size_t size);
/**
* Register an encoder 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_encoder(const struct obs_encoder_info *info);
#define obs_register_encoder(info) \
obs_register_encoder_s(info, sizeof(struct obs_encoder_info))