From 5841db6efc28f965eddd9772bbe9443dd4b9c449 Mon Sep 17 00:00:00 2001 From: Sebastian Beckmann Date: Sat, 30 Aug 2025 00:33:02 +0200 Subject: [PATCH] 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. --- libobs/obs-encoder.h | 3 --- libobs/obs-module.c | 1 - libobs/obs-output.h | 3 --- libobs/obs-service.h | 3 --- libobs/obs-source.h | 3 --- 5 files changed, 13 deletions(-) diff --git a/libobs/obs-encoder.h b/libobs/obs-encoder.h index 473cc369a..475c82380 100644 --- a/libobs/obs-encoder.h +++ b/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); diff --git a/libobs/obs-module.c b/libobs/obs-module.c index 2f946e801..dfa066b8d 100644 --- a/libobs/obs-module.c +++ b/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); } diff --git a/libobs/obs-output.h b/libobs/obs-output.h index ce35187a6..8bfa07a9f 100644 --- a/libobs/obs-output.h +++ b/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); diff --git a/libobs/obs-service.h b/libobs/obs-service.h index 447de19dd..57aaa7e3e 100644 --- a/libobs/obs-service.h +++ b/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); diff --git a/libobs/obs-source.h b/libobs/obs-source.h index 374f02d44..9cfef2166 100644 --- a/libobs/obs-source.h +++ b/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);