[vlc-devel] [PATCH] libvlc: expand media player API to retrieve information about all available titles of the currently playing media item

Felix Paul Kühne fkuehne at videolan.org
Thu Mar 26 14:54:53 CET 2015


Hello Rémi,

> On 26 Mar 2015, at 14:42, Rémi Denis-Courmont <remi at remlab.net> wrote:
> 
>> I thought it would be a nicer approach and it matches many other
>> libvlc functions.
> 
> How is a linked list nicer than a table of pointers?

In my use-case, I need to iterate through all available titles and in this scenario, having a table or a list appears to be equivalent to me. Additionally, this matches a lot of code we already have in libvlc like the list of audio devices.

> 
>>>> +        case INPUT_GET_FULL_TITLE_INFO:
>>> 
>>> Why do you need a new control and why is it only used by LibVLC?
>> 
>> Because of your feedback from early February.
> 
> Sure you need a single control to fetch all the data atomically. Still why do you introduce a new control instead of extending INPUT_GET_TITLE_INFO?

I did not want to break this existing core API and there may be reasons why you don’t want to do the admittedly expensive list creation but just get info about a single title.

Best regards,

Felix


More information about the vlc-devel mailing list