avio: add avio_open2, taking an interrupt callback and options
authorMartin Storsjö <martin@martin.st>
Sun, 6 Nov 2011 21:03:45 +0000 (23:03 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 13 Nov 2011 12:17:04 +0000 (13:17 +0100)
commit1dee0aca7401fc6c01f23ceedaff6533efb0fb28
treedbd6104edaaf97d9b48d84cc9ee75ca1747d48e3
parentddffc2fdc351d60ca190b016cccff4acff27823f
avio: add avio_open2, taking an interrupt callback and options

The interrupt callback has to be passed in during opening (setting it
after opening isn't enough), since a blocking open couldn't be
interrupted otherwise.

Options are passed down to procotols and also need to be available
during open() in most cases.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/avio.c
libavformat/avio.h
libavformat/avio_internal.h
libavformat/aviobuf.c
libavformat/url.h