summaryrefslogtreecommitdiff
path: root/libavformat/async.c
Commit message (Collapse)AuthorAge
* Merge commit 'fab8156b2f30666adabe227b3d7712fd193873b1'Derek Buitenhuis2016-04-21
| | | | | | | * commit 'fab8156b2f30666adabe227b3d7712fd193873b1': avio: Copy URLContext generic options into child URLContexts Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avformat: Add a protocol blacklisting APIDerek Buitenhuis2016-03-04
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* Merge commit '2758cdedfb7ac61f8b5e4861f99218b6fd43491d'Derek Buitenhuis2016-02-29
| | | | | | | | | | | This commit also disables the async fate test, because it used internal APIs in a non-kosher way, which no longer exists. * commit '2758cdedfb7ac61f8b5e4861f99218b6fd43491d': lavf: reorganize URLProtocols Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* Update demuxers and protocols for protocol whitelist supportMichael Niedermayer2016-02-02
| | | | | Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: Fix bug where async could not recover after seek to eofBryan Huh2015-11-13
| | | | | | | | | | | | | | | | | | | | | | | When async issues its inner seek via ffurl_seek, it treats failures as EOF being reached. This is not consistent with the behavior of other protocols (e.g. http, cache) which continue to tolerate reads after failed seeks, and therefore does not interact correctly with them. A common pattern where this manifests itself is where avio_seek is called with pos to be the end-of-file - the http range-request would fail here, and async would set io_eof_reached to 1. The background thread would then refuse to read more bytes, and subsequent reads would only empty the fifo and end in an error. Presumably the code may have expected subsequent seeks to unset the io_eof_reached but this is not guaranteed to be true - a subsequent seek that lands in the AVIOContext's buffer (the fact that the previously-failed avio_seek leaves the AVIOContext's buffer intact also suggests that follow-up reads are expected to be tolerated) would not be issued to the async_seek function, and when that buffer is drained only async_read calls would follow, leading to the same error just described. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* all: remove some casts of function pointer to void *Ganesh Ajjanagadde2015-10-24
| | | | | | | | | | These casts are unnecessary, and may safely be removed. Found by enabling -Wpedantic on clang 3.7. Tested with FATE. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avformat/async: cache some data for fast seek backwardZhang Rui2015-10-14
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate/async: test error code from underlying protocolZhang Rui2015-10-10
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: pass internal I/O errorZhang Rui2015-10-10
| | | | | | av_fifo_generic_write() does not return any error code. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: Allow compilation with native threads.Matt Oliver2015-09-30
|
* avformat/async: fix integer conversion warningZhang Rui2015-09-07
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: replace strerror with av_err2strZhang Rui2015-09-06
| | | | | | Fixes CID1322337 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: wake up main thread before exit background threadZhang Rui2015-07-25
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: move more code into locked area in background threadZhang Rui2015-07-25
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: rename async_interrupt_callback to async_check_interruptZhang Rui2015-07-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: fix interrupt_callback usage and return codeZhang Rui2015-07-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: Add missing elseMichael Niedermayer2015-07-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add test for async protocolZhang Rui2015-07-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/async: support filling with a background thread.Zhang Rui2015-07-18
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>