[vlc-devel] [RFC PATCHv2 00/10] libvlc: new track list and new track selection

Thomas Guillem thomas at gllm.fr
Thu Jun 4 23:23:15 CEST 2020


Here are the changes from the V1:
 - libvlc_media_tracklist_at() returns a const track (should not be deleted manually)
 - a const track can be used for selection
 - added libvlc_media_track_release() to release a single track (not comming
   from libvlc_media_tracklist_t)
 - liblvc_media_player_get_selected_track() return a non-const track (should be
   deleted with ^^)
 - added psz_id and id_stable in libvlc_media_track_t (filled from
   vlc_es_id_GetStrId(), and vlc_es_id_IsStrIdStable())
 - this psz_id is used by player track events to identify a track
 - added libvlc_media_player_get_track_from_id() to get the updated information
   about a track id
 - added libvlc_media_player_select_tracks_by_ids() (do the same than
   vlc_player_SelectTracksByStringIds()): ability to select multiple tracks
   from their string identifiers

TODO: remove legacy functions, adapt tests.

Best,
Thomas Guillem (10):
  lib: media: factorize track type conversion
  lib: move libvlc_media_track_t to a specific header
  lib: move track in media_track.c
  lib: add libvlc_media_tracklist API
  lib: add libvlc_media_get_tracklist()
  lib: media_track: add new members
  lib: add libvlc_media_track_release
  core: fix vlc_es_id_IsStrIdStable not exposed
  lib: add new player track API
  lib: update media_player track events

 include/vlc/libvlc_events.h       |  23 ++-
 include/vlc/libvlc_media.h        | 127 +++-----------
 include/vlc/libvlc_media_player.h | 138 ++++++++++++++++
 include/vlc/libvlc_media_track.h  | 220 +++++++++++++++++++++++++
 lib/Makefile.am                   |   2 +
 lib/libvlc.sym                    |  10 ++
 lib/media.c                       | 113 +++----------
 lib/media_internal.h              |  58 +++++++
 lib/media_player.c                | 189 +++++++++++++++++++--
 lib/media_player_internal.h       |   1 +
 lib/media_track.c                 | 264 ++++++++++++++++++++++++++++++
 src/libvlccore.sym                |   1 +
 12 files changed, 940 insertions(+), 206 deletions(-)
 create mode 100644 include/vlc/libvlc_media_track.h
 create mode 100644 lib/media_track.c

-- 
2.20.1



More information about the vlc-devel mailing list