summaryrefslogtreecommitdiff
path: root/libavformat/url.h
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avio: Copy URLContext generic options into child URLContextsMartin Storsjö2016-03-24
| | | | | | | | | | | | | | | Since all URLContexts have the same AVOptions, such AVOptions will be applied on the outermost context only and removed from the dict, while they probably make sense on all contexts. This makes sure that rw_timeout gets propagated to the innermost URLContext (to make sure it gets passed to the tcp protocol, when opening a http connection for instance). Alternatively, such matching options would be kept in the dict and only removed after the ffurl_connect call. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: Add an option 'rw_timeout'Andrey Utkin2016-03-24
| | | | | | | | | | | If set non-zero, this limits duration of the retry_transfer_wrapper() loop, thus affecting ffurl_read*(), ffurl_write(). As soon as one single byte is successfully received/transmitted, the timer restarts. This has further changes by Michael Niedermayer and Martin Storsjö. Signed-off-by: Martin Storsjö <martin@martin.st>
* urlprotocol: receive a list of protocols from the callerAnton Khirnov2016-02-22
| | | | | This way, the decisions about which protocols are available for use in any given situations can be delegated to the caller.
* protocols: make the list of protocols staticAnton Khirnov2016-02-22
| | | | | Disallow other code to touch it directly, now it's only accessible through a blacklisting/whitelisting function.
* lavf: move urlcontext_child_class_next() to protocols.cAnton Khirnov2016-02-22
| | | | | It needs to access the list of protocols directly, so it more properly belongs there.
* lavf: reorganize URLProtocolsAnton Khirnov2016-02-22
| | | | | | | | | | Instead of a linked list constructed at av_register_all(), store them in a constant array of pointers. Since no registration is necessary now, this removes some global state from lavf. This will also allow the urlprotocol layer caller to limit the available protocols in a simple and flexible way in the following commits.
* cosmetics: Drop empty comment linesDiego Biurrun2016-02-18
|
* urlprotocol: remove unused url_interrupt_cb declarationAnton Khirnov2014-10-18
| | | | It is a remnant of the old interrupt callback API.
* avformat: Mark argument in av_{i|o}format_next/ffurl_protocol_next as constDiego Biurrun2014-07-26
|
* lavf: Remove a now useless parameter to ffurl_register_protocolMartin Storsjö2013-10-30
| | | | | | | | | | | | | | This was added in 9b07a2dc02e9 as an ABI hack to allow older code built with lavf 52 to register protocols even if the size of the URLProtocol struct was increased. Later, registering protocols from outside of lavf was removed and this workaround isn't needed any longer since lavf 53. This removes an unchecked malloc and a memory leak for the cases when this workaround actually was used - which it hasn't since lavf 53. Signed-off-by: Martin Storsjö <martin@martin.st>
* avf: move url utility functions in a separate fileLuca Barbato2013-06-16
|
* avio: add (ff)url_get_multi_file_handle() for getting more than one fdJordi Ortiz2012-08-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: Add a function for signalling end of reading/writingSamuel Pitoiset2012-05-22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* url: Document the expected behaviour of url_readNicolas George2012-03-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: remove disabled FF_API_OLD_AVIO cruftAnton Khirnov2012-01-27
|
* avio: Add an URLProtocol flag for indicating that a protocol uses networkMartin Storsjö2012-01-05
| | | | | | | This definition is in two files, since the definitions will move to the private header at the next bump. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: add avio_open2, taking an interrupt callback and optionsMartin Storsjö2011-11-13
| | | | | | | | | | | 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>
* avio: add support for passing options to protocols.Anton Khirnov2011-11-13
| | | | | Not used anywhere yet, support for passing options from avio_open() will follow.
* avio: add and use ffurl_protocol_next().Anton Khirnov2011-11-13
|
* avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_allocMartin Storsjö2011-11-13
| | | | | Change all uses of these function to pass the relevant callback on.
* avio: Add an internal utility function for checking the new interrupt callbackMartin Storsjö2011-11-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: Add AVIOInterruptCBMartin Storsjö2011-11-13
| | | | | | | | | | | | | This is a better io interrupt callback function, which has an opaque parameter, which is given to the interrupt callback. This allows callers to precisely cancel IO for one single AVFormatContext, without interrupt other ones in the same process. Note, it's not needed in AVIOContext, at the moment. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* doxygen: Make sure parameter names match between .c and .h files.Diego Biurrun2011-07-14
|
* multiple inclusion guard cleanupDiego Biurrun2011-05-21
| | | | | Add missing multiple inclusion guards; clean up #endif comments; add missing library prefixes; keep guard names consistent.
* avio: add avio_check()Stefano Sabatini2011-04-13
| | | | | | | | The new function is more flexible than url_exist(), as it allows to specify which access flags to check, and does not require an explicit open of the checked resource. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: make URLProtocol internal.Anton Khirnov2011-04-08
|
* avio: make URLContext internal.Anton Khirnov2011-04-08
|
* avio: move two ff_udp_* functions from avio_internal to url.hAnton Khirnov2011-04-08
|
* avio: deprecate the typedef for URLInterruptCBAnton Khirnov2011-04-08
| | | | | There's no particular reason to pollute the namespace with a typedef for it.
* avio: move extern url_interrupt_cb declaration from avio.h to url.hAnton Khirnov2011-04-07
|
* avio: make av_register_protocol2 internal.Anton Khirnov2011-04-07
|
* avio: make URL_PROTOCOL_FLAG_NESTED_SCHEME internalAnton Khirnov2011-04-05
|
* avio: make url_get_file_handle() internal.Anton Khirnov2011-04-04
|
* avio: make url_filesize() internal.Anton Khirnov2011-04-04
|
* avio: make url_close() internal.Anton Khirnov2011-04-04
|
* avio: make url_seek() internal.Anton Khirnov2011-04-04
|
* avio: make url_write() internal.Anton Khirnov2011-04-04
|
* avio: make url_read_complete() internal.Anton Khirnov2011-04-04
|
* avio: make url_read() internal.Anton Khirnov2011-04-04
|
* avio: make url_open() internal.Anton Khirnov2011-04-04
|
* avio: make url_connect internal.Anton Khirnov2011-04-04
|
* avio: make url_alloc internal.Anton Khirnov2011-04-04