summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
Commit message (Collapse)AuthorAge
* 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
|
* avio: deprecate url_open_protocolAnton Khirnov2011-04-04
| | | | | The unbuffered API will be made private and it's not used anywhere internally.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use AVERROR_EXIT with url_interrupt_cb.Nicolas George2011-03-15
| | | | | | | | | | | | | 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-07
| | | | | | | | | | | | 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>
* URLProtocol: Add URL_PROTOCOL_FLAG_NESTED_SCHEMEMartin Storsjö2011-03-06
| | | | | | | | | If this flag is set, the protocol can handle URLs where the scheme is a nested scheme such as applehttp+file: - the protocol can handle any URL where the first segment of the nested scheme belongs to this protocol. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Non-blocking protocol: core wrapper functionsNicolas George2011-02-05
| | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Remove unused variable.Carl Eugen Hoyos2010-10-06
| | | | Originally committed as revision 25369 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use retry_transfer_wrapper() in url_write() as its callers do not expect it ↵Michael Niedermayer2010-10-06
| | | | | | to stop in the middle. Originally committed as revision 25368 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factor retry_transfer_wrapper() out of url_read_complete()Michael Niedermayer2010-10-06
| | | | Originally committed as revision 25367 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make register_protocol() use the function av_register_protocol2()Stefano Sabatini2010-09-30
| | | | | | | | | rather than av_register_protocol(), which is deprecated. Fix the GCC warning: avio.c: In function ‘register_protocol’: avio.c:93: warning: ‘av_register_protocol’ is deprecated (declared at avio.c:86) Originally committed as revision 25267 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move AVOptions from libavcodec to libavutilMichael Niedermayer2010-09-26
| | | | Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_REGISTER_PROTOCOL define to disable the deprecatedAurelien Jacobs2010-08-19
| | | | | | register_protocol() function Originally committed as revision 24840 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_API_URL_CLASS define to enable usage of URLContext as a AVClassAurelien Jacobs2010-08-19
| | | | Originally committed as revision 24835 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow all valid (and only valid) characters in URL scheme for url_open()Måns Rullgård2010-07-18
| | | | | | | | The URL specification allows letters, numbers, plus, hyphen, and period in the scheme part. The isalpha() test would allow additional characters depending on locale settings while rejecting numbers and punctuation. Originally committed as revision 24306 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove an unused label, fixing a warningEli Friedman2010-06-27
| | | | | | Patch by Eli Friedman, eli dot friedman at gmail Originally committed as revision 23828 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add proper const declaration to a cast, fixes a warningEli Friedman2010-06-27
| | | | | | Patch by Eli Friedman, eli dot friedman at gmail Originally committed as revision 23827 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-06-23
| | | | Originally committed as revision 23735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add priv_data_size and priv_data_class to URLProtocolMartin Storsjö2010-06-22
| | | | | | This allows url_alloc to allocate and initialize the priv_data. Originally committed as revision 23706 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split url_open and url_open_protocol into url_alloc and url_connectMartin Storsjö2010-06-22
| | | | Originally committed as revision 23704 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add an av_register_protocol2 function that takes a size parameterMartin Storsjö2010-06-22
| | | | | | | This allows extending the URLProtocol struct without breaking binary compatibility with code compiled with older definitions of the struct. Originally committed as revision 23702 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Declare the url_write buffer parameter as constMartin Storsjö2010-06-01
| | | | Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add version to AVClass so we can add to and use fields of AVClass without ↵Michael Niedermayer2010-04-28
| | | | | | ABI issues. Originally committed as revision 22987 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make url_seek() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) inStefano Sabatini2010-04-18
| | | | | | | the case where the seek operation is not defined in the protocol handler. Originally committed as revision 22901 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVSEEK_FORCE flag to indicate that the code should attempt to seekMichael Niedermayer2010-03-15
| | | | | | by any means. Originally committed as revision 22557 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Always call ff_network_init/ff_network_close when opening protocolsMartin Storsjö2010-03-05
| | | | | | | ff_network_init is a no-op on all platforms except windows, and on windows the performance penalty is minimal (less than 1 ms in my tests). Originally committed as revision 22224 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use av_mallocz in url_open_protocol for URLContext.Daniel Kristjansson2010-01-28
| | | | | | Patch by Daniel Kristjansson: danielk cuymedia net Originally committed as revision 21501 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make url_read_complete handle EAGAIN more intelligently.Reimar Döffinger2010-01-24
| | | | | | | Only retry 2 - 5 times in quick succession and afterwards sleep a bit to avoid creating high CPU load without any progress. Originally committed as revision 21427 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make url_read_complete retry on EAGAIN and return how much data it readReimar Döffinger2010-01-23
| | | | | | if it reached EOF, making it useful in more cases. Originally committed as revision 21393 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix comment typo carefull -> carefulMåns Rullgård2010-01-17
| | | | | | Spotted by someone on IRC. Originally committed as revision 21261 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move function for reading whole specified amount of data from RTSPKostya Shishkov2009-06-04
| | | | | | demuxer into more common place. Originally committed as revision 19087 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add url_get_file_handle(), which is used to get the file descriptorRonald S. Bultje2009-03-03
| | | | | | | | | | | associated with the I/O handle (e.g. the fd returned by open()). See "[RFC] rtsp.c EOF support" thread. There were previously some URI-specific implementations of the same idea, e.g. rtp_get_file_handles() and udp_get_file_handle(). All of these are deprecated by this patch and will be removed at the next major API bump. Originally committed as revision 17779 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename register_protocol() to av_register_protocol() and deprecateStefano Sabatini2009-02-15
| | | | | | register_protocol(). Originally committed as revision 17322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only special-case absolute DOS paths on systems that support them.Ramiro Polla2008-10-10
| | | | Originally committed as revision 15594 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove offset_t typedef and use int64_t directly instead.Diego Biurrun2008-10-03
| | | | | | | The name offset_t is easily confused with the standard off_t type and *_t is POSIX reserved namespace if any POSIX header is included. Originally committed as revision 15533 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement url_open_protocol(), which is basiclly the former url_open()Ronald S. Bultje2008-08-19
| | | | | | | | but which opens a URLProtocol instead of a filename. url_open() is reimplemented to call url_open_protocol(). See discussion on "url_open_protocol" on ffmpeg-devel. Originally committed as revision 14857 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check url_seek() in url_open().Michael Niedermayer2008-05-05
| | | | Originally committed as revision 13061 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVClass to URLContext at next major version bumpBjörn Axelsson2008-03-10
| | | | | | Patch by Björn Axelsson (bjorn axelsson intinor se) Originally committed as revision 12411 to svn://svn.ffmpeg.org/ffmpeg/trunk
* url_write is part of the public API so it may not be under ifdef.Guillaume LecrefECERF2008-01-08
| | | | | | | Also fixes a compile error if all muxers and protocols are disabled. Patch by Guillaume LECERF (foxcore gmail com) Originally committed as revision 11469 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make recently added and still unused read_seek functions return offset_t.Michael Niedermayer2007-12-19
| | | | Originally committed as revision 11274 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge recently added and still unused play and pause functions.Michael Niedermayer2007-12-19
| | | | Originally committed as revision 11273 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove dead code which disappeared with the last major version bump.Michael Niedermayer2007-12-19
| | | | Originally committed as revision 11268 to svn://svn.ffmpeg.org/ffmpeg/trunk