[FFmpeg-soc] [PATCH] rtsp tunneling

Ronald S. Bultje rsbultje at gmail.com
Mon Jun 14 18:59:53 CEST 2010


Hi,

On Mon, Jun 14, 2010 at 12:47 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> add a URLProtocol.priv_data_size
> this also might simplify existing code by moving allocation of priv_data
> to a common place

This doesn't solve the problem of fields that should be initialized to
a non-zero state in protocol_open(). We really need an API where we
have:
1) a function that allocates both URLContext as well as priv_data
context (so the type of protocol, e.g. HTTP, is known at this point)
2) a function that initializes these values to a default state; it
makes sense that this function is called at the same time as 1. It
also might make sense that the URI is known at this point
3) a window here where we can make changes to this context by calling
functions or eventually by introducing AVOptions
4) the moment where we actually open the connection, which would be url_open().

Ronald


More information about the FFmpeg-soc mailing list