include/vlc_media_source.h:220: warning: The following parameter of vlc_media_tree_Find(vlc_media_tree_t *tree, const input_item_t *media, input_item_node_t **result, input_item_node_t **result_parent) is not documented:
parameter 'media'
If we need to release the media tree before the preparse ends
the preparse callback will likely crash.
This allows to pass an optional task id to vlc_media_tree_Preparse and to
cancel it afterwards
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Add an API to manage "services discovery" easily from UI clients.
A "media source provider" allows to retrieve media sources (each
associated to a services discovery module).
A media source holds a media tree, containing both the media detected by
the services discovery module and the media detected by preparsing.
Clients may listen to the tree to be notified of changes.
A client may retrieve a media source at any time and listen to its
media tree, even if it is already populated, without race condition.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>