[vlc-devel] [PATCH v5 0/3] Media source and media tree

Romain Vimont rom1v at videolabs.io
Tue Aug 21 16:29:27 CEST 2018


A side-effect of generating preparsing events on the input thread is
that we can now avoid the lock-inversion problem present in version 4 of
this patchset:
<https://mailman.videolan.org/pipermail/vlc-devel/2018-July/120144.html>
<https://mailman.videolan.org/pipermail/vlc-devel/2018-July/120151.html>

Expose vlc_media_tree_Preparse() (similar to playlist_Preparse()) to
preparse an input item. If subitems are detected, they are automatically
added to the media tree (and media tree listeners are notified).

Romain Vimont (3):
  Introduce media source and media tree API
  Expose preparsing for media tree
  Use new media source API from the playlist

 include/vlc_media_source.h        |  87 ++++++++
 include/vlc_media_tree.h          | 144 +++++++++++++
 include/vlc_playlist.h            |   6 +-
 include/vlc_services_discovery.h  |   2 +
 src/Makefile.am                   |   6 +
 src/input/services_discovery.c    |   1 +
 src/interface/interface.c         |   4 +-
 src/libvlc.c                      |   9 +
 src/libvlc.h                      |   2 +
 src/libvlccore.sym                |  11 +
 src/media_source/media_source.c   | 256 +++++++++++++++++++++++
 src/media_source/media_source.h   |  48 +++++
 src/media_tree/media_tree.c       | 329 ++++++++++++++++++++++++++++++
 src/media_tree/media_tree.h       |  34 +++
 src/playlist/engine.c             |   6 +-
 src/playlist/playlist_internal.h  |   8 +-
 src/playlist/services_discovery.c | 281 +++++++++++++------------
 17 files changed, 1082 insertions(+), 152 deletions(-)
 create mode 100644 include/vlc_media_source.h
 create mode 100644 include/vlc_media_tree.h
 create mode 100644 src/media_source/media_source.c
 create mode 100644 src/media_source/media_source.h
 create mode 100644 src/media_tree/media_tree.c
 create mode 100644 src/media_tree/media_tree.h

-- 
2.18.0



More information about the vlc-devel mailing list