diff options
author | wm4 <wm4@nowhere> | 2014-04-15 22:38:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-15 22:38:16 +0200 |
commit | e2184fcbfb84029666d07fd49b4cab71b835e2e8 (patch) | |
tree | f304e9db9be6f2d2c3d7cf235901ba2bd2f5d4ca /stream/tvi_v4l2.c | |
parent | cad6425c466b29ede88d365eac465563b9c03570 (diff) | |
download | mpv-e2184fcbfb84029666d07fd49b4cab71b835e2e8.tar.bz2 mpv-e2184fcbfb84029666d07fd49b4cab71b835e2e8.tar.xz |
audio: wake up the core when audio buffer is running low
And also add a function ao_need_data(), which AO drivers can call if
their audio buffer runs low.
This change intends to make it easier for the playback thread: instead
of making the playback thread calculate a timeout at which the audio
buffer should be refilled, make the push.c audio thread wakeup the core
instead.
ao_need_data() is going to be used by ao_pulse, and we need to
workaround a stupid situation with pulseaudio causing a deadlock because
its callback still holds the internal pulseaudio lock.
For AOs that don't call ao_need_data(), the deadline is calculated by
the buffer fill status and latency, as before.
Diffstat (limited to 'stream/tvi_v4l2.c')
0 files changed, 0 insertions, 0 deletions