[vlc-devel] [RFC] Fill in input_item es info during preparsing.

Pierre d'Herbemont pdherbemont at free.fr
Mon Feb 22 18:06:55 CET 2010


Hi,

This is to address the fact that we need to play the video for getting its
ES in an input_item.

This is particularly annoying in the case of the function
libvlc_media_get_es(), which don't work unless you do some heavy work around
to get it working on the client side.

I am guessing that this will wait after 1.1.

But you should consider that this seems low risk. And low performance issue.

1. First, this is done where we currently do the input_item's info field
filling. (We are doing a bunch of string operation and such).
2. This is low memory overhead, mostly
    a. because the structure size is fixed. We are NOT using es_format_t.
    b. We are proportional to the size of the input_item's info field in
term of allocation. (And we are greatly inferior).

While we are at it, I would suggest us to ditch the input_item_t's info
field.

And it fix to me what is a bug, (or a documented bug if your prefer) of
libvlc.

Okay, now that it is said. It's also true that we are in code freeze and
could wait a next release.

Our other option here is to parse the input_item's info dictionary ourselves
in libvlc here. (And *not* to advise the user to use a media_player instance
with sout=#description, which makes us look overcomplicated).

Pierre.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100222/5c92b8da/attachment.html>


More information about the vlc-devel mailing list