[FFmpeg-devel] Controlling the server reply (was: 9/9] doc/example: Add http multi-client) example code

Nicolas George george at nsup.org
Sun Jul 19 21:31:20 CEST 2015


Le primidi 1er thermidor, an CCXXIII, Stephan Holljes a écrit :
> I'm having trouble accessing a client's private data in my sample
> application. After forking I have an AVIOContext client, but how do I
> access its HTTPContext's AVOption fields? For example, how do I get
> the method or how do I set the http_code?

It is hard to tell without seeing the code. The principle is not complex:
declare the field in the options array in http.c. Then the application can
access using av_opt_set*() and av_opt_get*() on the AVIOContext with
AV_OPT_SEARCH_CHILDREN set.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150719/e3e106c9/attachment.sig>


More information about the ffmpeg-devel mailing list