summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-08 17:53:34 +0100
committerwm4 <wm4@nowhere>2017-02-08 20:29:38 +0100
commit5085cf295f9de28d22004b6356219eeeadcf01c1 (patch)
tree09d690694d68c9b3352f8724678e1f4f9d4092eb /audio
parente285e2214333e7d625fb5bac3022c3cfb57b7f1e (diff)
downloadmpv-5085cf295f9de28d22004b6356219eeeadcf01c1.tar.bz2
mpv-5085cf295f9de28d22004b6356219eeeadcf01c1.tar.xz
lavfi: slightly better disconnected output handling
If we have a disconnected output, read data only passively (and don't cause input to be written). Otherwise, we're in danger of making libavfilter queue too many frames on other outputs which are connected to the same input, but don't read as quickly. Also don't set pad->output_needed in this specific case, because it would nonsensically make lavfi_process() return true, even if nothing is going on. This commit breaks if there is a simple filter chain with a connected input, but a disconnected output, like --lavfi-complex='[aid1] copy [ao]' and the audio output didn't initialize correctly. This will eventually starve video as the audio packet queue get full (it will print a warning, and then assume video EOF and exit). But whatever. Probably fixes #4118.
Diffstat (limited to 'audio')
0 files changed, 0 insertions, 0 deletions