[vlc-devel] [PATCH 01/15] Enable selection of secondary SPU ES in the core
Roland Bewick
roland.bewick at gmail.com
Thu May 16 07:03:38 CEST 2019
Thank you all,
I'll add vlc_player_SelectTrackList as requested.
Also: I can use this method to handle secondary subtitle track cycling
using the hotkeys too, so I'll remove the other API function I added and
return the original SelectNextTrack/SelectPrevTrack functionality to
support only single selection (I'll handle secondary subtitle track
cycling from the hotkeys instead).
Roland
>
> On Wed, May 15, 2019, at 15:44, Rémi Denis-Courmont wrote:
>> Hi,
>>
>> If SelectTrackList sets the list (as opposed to, add tracks to the
>> list), then there is no use/meaning for UnselectTrackList. A single
>> function is enough, no?
>
> Indeed, that is what I answered to Steve.
>
>>
>> Le 15 mai 2019 13:39:59 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a
>> écrit :
>>
>> 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
>>
>>
>> --
>> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez
>> excuser ma brièveté.
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>
>
> _______________________________________________
> 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/20190516/da4eb270/attachment.html>
More information about the vlc-devel
mailing list