[vlc-devel] [PATCH 5/6] libvlc: media: add parse_associated_media option

Alexandre Janniaux ajanni at videolabs.io
Tue Dec 3 17:02:26 CET 2019

This option will allow parsing other media items associated to the
current media through the use of `libvlc_media_player_add_slave` or
similar other mechanism. It is not enable by default as being more IO
intensive and giving a different behaviour than the previous one.

It is needed in particular to find the different es_id associated with
the different tracks in a LibVLC client wanting to make use of the
unstable stream output options, and wanting to use filters like
duplicate with `select-*` option.
 include/vlc/libvlc_media.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
index d60617a3a5..2ba8348fcf 100644
--- a/include/vlc/libvlc_media.h
+++ b/include/vlc/libvlc_media.h
@@ -272,6 +272,11 @@ typedef enum libvlc_media_parse_flag_t
      * when the input is asking for credentials.
     libvlc_media_do_interact    = 0x08,
+    /**
+     * Also parse media associated to this item like external subtitles or
+     * input slaves.
+     */
+    libvlc_media_parse_associated_media = 0x10,
 } libvlc_media_parse_flag_t;

More information about the vlc-devel mailing list