[FFmpeg-devel] [PATCH] Allow setting options on URLContexts before opening the connection

Martin Storsjö martin
Mon Jun 21 10:36:58 CEST 2010


Hi,

This is the first version of the patch series that allows setting options 
on URLContexts before actually opening the connection. This is a followup 
of a thread discussing this on ffmpeg-soc, with the title "[PATCH] rtsp 
tunneling".

The main things taken care of in this patch series are:
- Add an av_register_protocol2, that takes a size parameter, that allows 
us to extend the URLProtocol struct without breaking binary compatibility 
with external code that registers their own protocol handlers
- Split url_open into url_alloc and url_connect
- Add priv_data_size and priv_data_class to URLProtocol, for allowing the 
common code to allocate the priv_data and setting values within it

- Changes to http.c and rtsp.c to take all this into use

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-an-av_register_protocol2-that-takes-a-size-param.patch
Type: text/x-diff
Size: 3281 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100621/6f1230ce/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Split-url_open-and-url_open_protocol-into-url_alloc-.patch
Type: text/x-diff
Size: 5163 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100621/6f1230ce/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-priv_data_size-to-URLProtocol-to-allow-url_alloc.patch
Type: text/x-diff
Size: 1763 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100621/6f1230ce/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Allocate-the-HTTPContext-through-URLProtocol-priv_da.patch
Type: text/x-diff
Size: 1430 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100621/6f1230ce/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Add-an-AVClass-to-the-HTTPContext.patch
Type: text/x-diff
Size: 1878 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100621/6f1230ce/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Make-the-http-protocol-open-the-connection-immediate.patch
Type: text/x-diff
Size: 4262 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100621/6f1230ce/attachment-0005.patch>



More information about the ffmpeg-devel mailing list