Martin Storsjö
5b81e29593
avio: Fix the deprecated fallback URL-prefixed open flags
...
While deprecated, they're totally useless as long as their values
are different from the AVIO_FLAG values that are used internally.
Currently, this leads to old libav applications still compiling
correctly (since we haven't removed the fallback wrappers), but
failing since the functions internally compare to the new AVIO_FLAG
values.
These should be removed at some point, but they aren't removed yet.
The intent is to be able to recompile an old application against
the new ABI without modifying the code, and this doesn't work
currently.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Stefano Sabatini
59d96941f0
avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
...
Make AVIO_FLAG_ access constants work as flags, and in particular fix
the behavior of functions (such as avio_check()) which expect them to
be flags rather than modes.
This breaks API.
14 years ago
Anton Khirnov
32b80696e0
lavf: remove misc disabled cruft.
14 years ago
Anton Khirnov
7f804085f1
lavf: remove FF_API_URL_CLASS cruft.
14 years ago
Anton Khirnov
c4efa7c229
lavf: remove FF_API_UDP_GET_FILE cruft
14 years ago
Anton Khirnov
dcd4a7b62f
lavf: remove FF_API_REGISTER_PROTOCOL cruft
14 years ago
Anton Khirnov
468644f6c1
lavf: remove FF_API_URL_RESETBUF cruft
14 years ago
Anton Khirnov
4bde56d1af
avio: deprecate url_exist in favor of avio_check.
14 years ago
Stefano Sabatini
175389c854
avio: add avio_check()
...
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>
14 years ago
Anton Khirnov
cbea3ac820
avio: left-shift AVIO_ flags on next bump
...
Now AVIO_RDONLY is defined as 0, so it's not usable as a flag.
14 years ago
Anton Khirnov
ff1ec0c3f8
avio: undeprecate av_url_read_fseek/fpause under nicer names
...
It seems their replacements won't be ready anytime soon.
14 years ago
Anton Khirnov
d1c5fdf892
avio: add more documentation for AVIOContext.
14 years ago
Anton Khirnov
c1a9012d62
avio: document some members of AVIOContext.
14 years ago
Anton Khirnov
e782a0c6da
avio: document avio_close().
14 years ago
Anton Khirnov
893816ba1e
avio: cosmetics, vertically align comments.
14 years ago
Anton Khirnov
72d4405b66
avio: cosmetics, group the reading functions.
14 years ago
Anton Khirnov
37744e3282
avio: cosmetics, merge all the FF_API_OLD_AVIO blocks.
14 years ago
Anton Khirnov
fafa7290f1
avio: cosmetics, move AVIOContext to start of the file.
14 years ago
Anton Khirnov
6084ee5dc5
avio: update file header.
14 years ago
Anton Khirnov
cdc6a87f19
avio: deprecate av_protocol_next().
14 years ago
Anton Khirnov
f8270bbf8c
avio: add a function for iterating though protocol names.
14 years ago
Anton Khirnov
5593f03148
avio: make URLProtocol internal.
14 years ago
Anton Khirnov
c486dade95
avio: make URLContext internal.
14 years ago
Anton Khirnov
026e175775
avio: deprecate the typedef for URLInterruptCB
...
There's no particular reason to pollute the namespace with a typedef for
it.
14 years ago
Anton Khirnov
5cec897105
avio: move extern url_interrupt_cb declaration from avio.h to url.h
14 years ago
Anton Khirnov
8e76a19b63
avio: make av_register_protocol2 internal.
14 years ago
Anton Khirnov
80c6e238b0
avio: avio_ prefix for url_set_interrupt_cb.
14 years ago
Anton Khirnov
f87b1b373a
avio: AVIO_ prefixes for URL_ open flags.
14 years ago
Anton Khirnov
b840484798
avio: make URL_PROTOCOL_FLAG_NESTED_SCHEME internal
14 years ago
Anton Khirnov
1305d93c42
avio: deprecate av_url_read_seek
...
It's not used anywhere internally.
Salvage its documentation for ffio_read_seek.
14 years ago
Anton Khirnov
fa104e14ab
avio: deprecate av_url_read_pause
...
It's not used anywhere internally.
Salvage its documentation for ffio_read_pause.
14 years ago
Anton Khirnov
727c7aa026
avio: deprecate url_get_filename().
...
URLContext.filename should be used directly.
14 years ago
Anton Khirnov
5958df341d
avio: deprecate url_max_packet_size().
...
URLContext.max_packet_size should be used directly.
14 years ago
Anton Khirnov
1869ea03b7
avio: make url_get_file_handle() internal.
14 years ago
Anton Khirnov
32a97d4630
avio: make url_filesize() internal.
14 years ago
Anton Khirnov
e52a9145c8
avio: make url_close() internal.
14 years ago
Anton Khirnov
58a48c6511
avio: make url_seek() internal.
14 years ago
Anton Khirnov
230a468679
avio: cosmetics, move AVSEEK_SIZE/FORCE declarations together
14 years ago
Anton Khirnov
925e908bc7
avio: make url_write() internal.
14 years ago
Anton Khirnov
dce3756459
avio: make url_read_complete() internal.
14 years ago
Anton Khirnov
bc371aca46
avio: make url_read() internal.
14 years ago
Anton Khirnov
0589da0aa5
avio: make url_open() internal.
14 years ago
Anton Khirnov
62eaaeacb5
avio: make url_connect internal.
14 years ago
Anton Khirnov
5652bb9471
avio: make url_alloc internal.
14 years ago
Anton Khirnov
333e894363
avio: deprecate url_open_protocol
...
The unbuffered API will be made private and it's not used anywhere
internally.
14 years ago
Anton Khirnov
e230705392
avio: deprecate url_poll and URLPollEntry
...
They're unimplemented and nobody cared to do anything with that for
10 years.
14 years ago
Anton Khirnov
724f6a0fa4
avio: make url_fdopen internal.
...
The unbuffered URLContext API will be made private, so there's no point
in this function being public.
14 years ago
Anton Khirnov
403ee835e7
avio: make url_open_dyn_packet_buf internal.
...
It doesn't look fit to be a part of the public API.
Adding a temporary hack to ffserver to be able to use it, should be
cleaned up when somebody is up for it.
14 years ago
Anton Khirnov
6dc7d80de7
avio: avio_ prefix for url_close_dyn_buf
14 years ago
Anton Khirnov
b92c545282
avio: avio_ prefix for url_open_dyn_buf
14 years ago