[vlc-devel] [PATCH v4 1/3] Introduce media source and media tree API
Rémi Denis-Courmont
remi at remlab.net
Tue Jul 10 17:18:31 CEST 2018
Le tiistaina 10. heinäkuuta 2018, 12.24.44 EEST Romain Vimont a écrit :
> > If you don't instantiate a module, you don't need an object. It would
> > probably be simpler to just make this a "normal" opaque structure.
>
> vlc_media_source_provider_t creates media sources, which in the end
> calls vlc_sd_Create(), which requires an object (it instantiates a
> module).
Yes but no. vlc_sd_Create() already creates the (SD) object with which to
instantiate the SD plugin.
The media source per se does not instantiate any module: it does not call
vlc_module_load() or any of its wrappers. And it does not also not implement
any legacy programming interface based on VLC object variables either.
With neither of those two artifacts, it does not really require a VLC object.
--
レミ・デニ-クールモン
http://www.remlab.net/
More information about the vlc-devel
mailing list