<!DOCTYPE html><html><head><title></title><style type="text/css">#qt p.qt-MsoNormal,#qt p.qt-MsoNoSpacing{margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;}

p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>I think I prefer the following API:<br></div><div><br></div><div>VLC_API void<br></div><div>vlc_player_SelectTrackList(vlc_player_t *player, enum es_format_category_e cat, vlc_es_id_t *const es_id_list[]);</div><div><br></div><div>VLC_API void<br></div><div>vlc_player_UnselectTrackList(vlc_player_t *player, enum es_format_category_e cat, vlc_es_id_t *const es_id_list[]);</div><div><br></div><div><div><div>es_id_list is a NULL terminated array of vlc_es_id_t<br></div></div><div><div><br></div></div><div><div><div><br></div></div></div></div><div>Example of use case:<br></div><div>{<br></div><div>  vlc_es_id_t *spu_list[] = { spu_id_1, spu_id_2, NULL };<br></div><div>  vlc_player_SelectTrackList(player, SPU_ES, spu_list);<br></div><div>}<br></div><div><br></div><div>vlc_player_SelectTrackList will replace every tracks of one category by the one specified in the array.<br></div><div><br></div><div>On Wed, May 15, 2019, at 11:30, Roland Bewick wrote:<br></div><blockquote type="cite" id="qt"><p><br></p><div class="qt-moz-cite-prefix">On 15/05/2019 3:59 PM, Thomas Guillem
      wrote:<br></div><blockquote cite="mid:a11febac-7c1e-4e1d-883d-9f460fd9b56a@www.fastmail.com" type="cite"><div>The new way to select multiple tracks should be more generic
        since it could possibly work for video and audio (in the
        future).<br></div><div><br></div><div>The player API is new and was not yet published, we can
        modify it easily.<br></div><div><br></div><div>We could just add a "bool multiple" to
        vlc_player_SelectTrack(); and specify in the documentation that
        multiple work only for Video and for 2 subtitles.<br></div><div><br></div><div>Or we can find a new function, like
        vlc_player_SelectTrackMultiple().<br></div></blockquote><p>I'd prefer adding an extra parameter to the existing
      vlc_player_SelectTrack, but it is not up to me.<br></p><p>Could the VLC team make a decision on this?<br></p><p>Thanks,<br></p><p>Roland<br></p><div><br></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div>https://mailman.videolan.org/listinfo/vlc-devel<br></div></blockquote><div><br></div></body></html>