[vlc-devel] Re: [PATCH] Matroska Attachments

Laurent Aimar fenrir at via.ecp.fr
Thu May 31 21:28:18 CEST 2007


On Thu, May 31, 2007, Bernie Purcell wrote:
>    I don't have a problem with how it is done, but might need a bit more
>    information from you on what it is you are proposing, as I don't think I'm
>    understanding it. One thing that would need to not be compromised, though,
>    is the ability to access the attachments from other places also. The
>    obvious example is the freetype, quartztext and other text rendering
>    modules who might want to load up ttf font attachments and use those for
>    the rendering of text. Would this change to implementation prevent that?
 Ok, I have used your way (commited).

 From the decoder you just need to call:
	decoder_GetInputAttachment( p_dec, "your name" )
 It will return a input_attachment_t (You need to free it once you don't need
it anymore using vlc_input_attachment_Delete.

 If you prefer I can add a decoder_GetAllInputAttachment that will return
them all but you can receive unneeded attachments and so waste a bit more 
memory...

 Report any problems (I have not tested it)

Regards,

-- 
fenrir

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list