[vlc-devel] [PATCH 01/15] Enable selection of secondary SPU ES in the core
Thomas Guillem
thomas at gllm.fr
Wed May 15 12:39:59 CEST 2019
I think I prefer the following API:
VLC_API void
vlc_player_SelectTrackList(vlc_player_t *player, enum es_format_category_e cat, vlc_es_id_t *const es_id_list[]);
VLC_API void
vlc_player_UnselectTrackList(vlc_player_t *player, enum es_format_category_e cat, vlc_es_id_t *const es_id_list[]);
es_id_list is a NULL terminated array of vlc_es_id_t
Example of use case:
{
vlc_es_id_t *spu_list[] = { spu_id_1, spu_id_2, NULL };
vlc_player_SelectTrackList(player, SPU_ES, spu_list);
}
vlc_player_SelectTrackList will replace every tracks of one category by the one specified in the array.
On Wed, May 15, 2019, at 11:30, Roland Bewick wrote:
>
> On 15/05/2019 3:59 PM, Thomas Guillem wrote:
>> The new way to select multiple tracks should be more generic since it could possibly work for video and audio (in the future).
>>
>> The player API is new and was not yet published, we can modify it easily.
>>
>> 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.
>>
>> Or we can find a new function, like vlc_player_SelectTrackMultiple().
> I'd prefer adding an extra parameter to the existing vlc_player_SelectTrack, but it is not up to me.
> Could the VLC team make a decision on this?
> Thanks,
> Roland
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190515/e6751362/attachment.html>
More information about the vlc-devel
mailing list