[vlc-devel] [PATCH 1/3] Introduce media source and media tree API
remi at remlab.net
Tue Jun 19 19:59:23 CEST 2018
Le tiistaina 19. kesäkuuta 2018, 20.00.15 EEST Romain Vimont a écrit :
> Add an API to manage "services discovery" out of the playlist.
> A "media source provider", associated to the libvlc instance, allows to
> retrieve media sources (each associated to a services discovery module).
> Requesting a services discovery that is not open will automatically open
> it. If several "clients" request the same media source (i.e. by
> requesting the same name), they will receive the same (refcounted) media
> source instance.
> As soon as a media source is released by all its clients, the associated
> services discovery is closed.
> Each media source holds a media tree, independant of the playlist, used
> to store the input items detected by the services discovery. Clients may
> connect callbacks to the tree to be notified of changes.
I still don't see any valid reasons to reinvent input_item and
And in any case, there are reasons why input_item is not tied to an object:
the item can outlive its maker (while one object per item would be too heavy).
So you cannot have media source tied to an object either. It's either going to
break immediately, or become an enormous mess and break sooner rather than
More information about the vlc-devel