[vlc-devel] [PATCH] libvlc: Get ES descriptions for media

Rafaël Carré rafael.carre at gmail.com
Thu Jan 21 13:16:58 CET 2010


Hi,

Attached patch exports ES informations from a libvlc_media_t

It'll return the number of known ES, and an allocated array of ES
description (function takes a pointer to libvlc_media_es_t *)

libvlc_media_es_t is a trimmed version of es_format_t : I think not all
fields need to be exported to libvlc users.

Since I'm a lazy bastard, I only added the fields which I personally
need in my application.
Some of the fields are not present in struct es_format_t yet, but I'll
add support for them once this patch gets in.

Also I didn't include some obviously useful fields (like video
resolution), to raise a discussion about which fields needs to be
included there.



Also note that ATM, input_item_t i_es/es are not filled unless you play
the media once with --sout="#description".

Changing this behaviour is in the works and will be the subject of
another patch.

-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libvlc-Get-ES-descriptions-for-media.patch
Type: text/x-patch
Size: 3210 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100121/2371b3d7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100121/2371b3d7/attachment.sig>


More information about the vlc-devel mailing list