On Thu Mar 6 08:23:35 2025 +0000, Rémi Bernon wrote:
Fwiw I considered this but I don't really see how it is better, you would have to define a custom struct for the factory, and have duplicated declarations of this struct with the mime and gstreamer guid still. Duplicating the method reduces the dependencies between the components as they don't need to share a custom struct.
To me it's better because it would be using some static data and common code instead of same code blocks, but I'm not asking anyone to make this change. Maybe we could have a helper for this if() block still?