[vlc-devel] [PATCH v4 1/3] Introduce media source and media tree API
Romain Vimont
rom1v at videolabs.io
Tue Jul 10 17:36:43 CEST 2018
On Tue, Jul 10, 2018 at 06:18:31PM +0300, Rémi Denis-Courmont wrote:
> 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.
OK, so you are suggesting to make libvlc a direct parent of all SD
objects?
In that case, vlc_media_source_provider_t would just keep a reference to
vlc_object_t/libvlc_int_t to be passed to each vlc_sd_Create() call.
More information about the vlc-devel
mailing list