Procházet zdrojové kódy

libobs: Remove unused obs_*_info module pointer

These were likely originally used for the obs_*_get_module functions,
but no longer are. Additionally, they weren't even implemented for
anything but obs_source_info. Let's remove this before it hits stable.
Sebastian Beckmann před 1 měsícem
rodič
revize
5841db6efc

+ 0 - 3
libobs/obs-encoder.h

@@ -344,9 +344,6 @@ struct obs_encoder_info {
 
 	bool (*encode_texture2)(void *data, struct encoder_texture *texture, int64_t pts, uint64_t lock_key,
 				uint64_t *next_key, struct encoder_packet *packet, bool *received_packet);
-
-	/** Pointer to module that generated this encoder **/
-	obs_module_t *module;
 };
 
 EXPORT void obs_register_encoder_s(const struct obs_encoder_info *info, size_t size);

+ 0 - 1
libobs/obs-module.c

@@ -990,7 +990,6 @@ void obs_register_source_s(const struct obs_source_info *info, size_t size)
 
 	/* NOTE: The assignment of data.module must occur before memcpy! */
 	if (loadingModule) {
-		data.module = loadingModule;
 		char *source_id = bstrdup(info->id);
 		da_push_back(loadingModule->sources, &source_id);
 	}

+ 0 - 3
libobs/obs-output.h

@@ -85,9 +85,6 @@ struct obs_output_info {
 
 	/* required if OBS_OUTPUT_SERVICE */
 	const char *protocols;
-
-	/* Pointer to module that generated this output */
-	obs_module_t *module;
 };
 
 EXPORT void obs_register_output_s(const struct obs_output_info *info, size_t size);

+ 0 - 3
libobs/obs-service.h

@@ -104,9 +104,6 @@ struct obs_service_info {
 	const char *(*get_connect_info)(void *data, uint32_t type);
 
 	bool (*can_try_to_connect)(void *data);
-
-	/* Pointer to module that generated this service */
-	obs_module_t *module;
 };
 
 EXPORT void obs_register_service_s(const struct obs_service_info *info, size_t size);

+ 0 - 3
libobs/obs-source.h

@@ -551,9 +551,6 @@ struct obs_source_info {
 	 * @param  source  Source that the filter is being added to
 	 */
 	void (*filter_add)(void *data, obs_source_t *source);
-
-	/** Pointer to module that generated this source **/
-	obs_module_t *module;
 };
 
 EXPORT void obs_register_source_s(const struct obs_source_info *info, size_t size);