summaryrefslogtreecommitdiffstats
path: root/libavformat/avio.c
Commit message (Collapse)AuthorAgeFilesLines
* avio: Handle AVERROR_EOF in the same way as the return value 0Michael Niedermayer2013-07-071-1/+1
| | | | | | | | | This makes sure the ffurl_read_complete function actually returns the number of bytes read, as the documentation of the function says, even if the underlying protocol uses AVERROR_EOF instead of 0. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: fix pointer type mismatches in avio_enum_protocols()Mans Rullgard2012-10-271-5/+5
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: add (ff)url_get_multi_file_handle() for getting more than one fdJordi Ortiz2012-08-171-0/+15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace usleep() calls with av_usleep()Mans Rullgard2012-06-221-3/+2
| | | | | | | This reduces the dependency on unistd.h which is not available on all systems. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: Add a function for signalling end of reading/writingSamuel Pitoiset2012-05-221-0/+7
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Remove extra newlines at EOFAlex Converse2012-01-271-1/+0
|
* lavf: remove disabled FF_API_OLD_INTERRUPT_CB cruftAnton Khirnov2012-01-271-23/+0
|
* lavf: remove disabled FF_API_OLD_AVIO cruftAnton Khirnov2012-01-271-111/+0
|
* avio: Only do implicit network initialization for network protocolsMartin Storsjö2012-01-051-3/+5
| | | | | | | | | | The implicit network initialization is set to be removed in the future, but is kept for compatibility. By not doing the implicit initialization for non-network protocols, we avoid the warning about avformat_network_init() not being called for these, where it really doesn't make much sense. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: Mark the old interrupt callback mechanism as deprecatedMartin Storsjö2011-11-181-1/+9
| | | | Prepare for removing it at an upcoming major bump.
* avio: add avio_open2, taking an interrupt callback and optionsMartin Storsjö2011-11-131-2/+2
| | | | | | | | | | | 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-131-9/+46
| | | | | Not used anywhere yet, support for passing options from avio_open() will follow.
* avio: add and use ffurl_protocol_next().Anton Khirnov2011-11-131-8/+11
|
* avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_allocMartin Storsjö2011-11-131-11/+16
| | | | | Change all uses of these function to pass the relevant callback on.
* avformat: Use ff_check_interruptMartin Storsjö2011-11-131-1/+1
|
* avio: Add an internal utility function for checking the new interrupt callbackMartin Storsjö2011-11-131-0/+8
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: Free URLContext private data allocated via AVOptionsMartin Storsjö2011-11-101-1/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Remove some stray unnecessary ffmpeg references.Diego Biurrun2011-11-021-1/+1
|
* lavf: use designated initializers for AVClasses.Anton Khirnov2011-05-171-2/+6
|
* configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun2011-05-121-2/+1
| | | | | | | | | | | | | | | | Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
* avio: Fix sanity checks in ffurl_read*Martin Storsjö2011-04-201-2/+2
| | | | | | | This fixes e.g. reading data over HTTP, where the underlying socket is set to read/write. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbolsStefano Sabatini2011-04-191-5/+5
| | | | | | | | 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.
* lavf: remove FF_API_URL_CLASS cruft.Anton Khirnov2011-04-191-4/+0
|
* lavf: remove FF_API_REGISTER_PROTOCOL cruftAnton Khirnov2011-04-191-23/+0
|
* avio: deprecate url_exist in favor of avio_check.Anton Khirnov2011-04-131-0/+2
|
* avio: add avio_check()Stefano Sabatini2011-04-131-0/+19
| | | | | | | | 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: deprecate av_protocol_next().Anton Khirnov2011-04-081-0/+2
|
* avio: add a function for iterating though protocol names.Anton Khirnov2011-04-081-0/+10
|
* avio: deprecate the typedef for URLInterruptCBAnton Khirnov2011-04-081-2/+2
| | | | | There's no particular reason to pollute the namespace with a typedef for it.
* avio: make av_register_protocol2 internal.Anton Khirnov2011-04-071-3/+7
|
* avio: avio_ prefix for url_set_interrupt_cb.Anton Khirnov2011-04-071-1/+5
|
* avio: AVIO_ prefixes for URL_ open flags.Anton Khirnov2011-04-071-6/+6
|
* avio: deprecate av_url_read_seekAnton Khirnov2011-04-051-1/+1
| | | | | | It's not used anywhere internally. Salvage its documentation for ffio_read_seek.
* avio: deprecate av_url_read_pauseAnton Khirnov2011-04-051-0/+2
| | | | | | It's not used anywhere internally. Salvage its documentation for ffio_read_pause.
* avio: deprecate url_get_filename().Anton Khirnov2011-04-041-6/+4
| | | | URLContext.filename should be used directly.
* avio: deprecate url_max_packet_size().Anton Khirnov2011-04-041-5/+4
| | | | URLContext.max_packet_size should be used directly.
* avio: make url_get_file_handle() internal.Anton Khirnov2011-04-041-1/+5
|
* avio: make url_filesize() internal.Anton Khirnov2011-04-041-1/+5
|
* avio: make url_close() internal.Anton Khirnov2011-04-041-4/+8
|
* avio: make url_seek() internal.Anton Khirnov2011-04-041-7/+11
|
* avio: make url_write() internal.Anton Khirnov2011-04-041-1/+5
|
* avio: make url_read_complete() internal.Anton Khirnov2011-04-041-1/+5
|
* avio: make url_read() internal.Anton Khirnov2011-04-041-1/+5
|
* avio: make url_open() internal.Anton Khirnov2011-04-041-3/+7
|
* avio: make url_connect internal.Anton Khirnov2011-04-041-3/+7
|
* avio: make url_alloc internal.Anton Khirnov2011-04-041-2/+7
|
* avio: deprecate url_open_protocolAnton Khirnov2011-04-041-0/+2
| | | | | The unbuffered API will be made private and it's not used anywhere internally.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use AVERROR_EXIT with url_interrupt_cb.Nicolas George2011-03-151-1/+1
| | | | | | | | | | | | | Functions interrupted by url_interrupt_cb should not be restarted. Therefore using AVERROR(EINTR) was wrong, as it did not allow to distinguish when the underlying system call was interrupted and actually needed to be restarted. This fixes roundup issues 2657 and 2659 (ffplay not exiting for streamed content). Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* In retry_transfer_wrapper, do not check url_interrupt_cb, causes problemsBaptiste Coudurier2011-03-071-2/+2
| | | | | | | | | | | | when writing and pressing q during encoding. Instead, check url_interrupt_cb at the end. Note that when a protocol is interrupted by url_interrupt_cb, some data may be silently discarded: the protocol context is not suitable for anything anymore. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
OpenPOWER on IntegriCloud