Hi,

On Mon, Jun 14, 2010 at 12:47 PM, Michael Niedermayer <[email protected]> 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
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to