summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-02 23:58:55 +0100
committerwm4 <wm4@nowhere>2015-11-03 00:23:28 +0100
commitd634394da6f71b93d61afbcc1c9d8c0eb4904d49 (patch)
tree02656b57349b55bcb14c41611e8308880eaeb7fa /player
parent609de236a9e2bf64407fa447c32d2cc1262d1727 (diff)
downloadmpv-d634394da6f71b93d61afbcc1c9d8c0eb4904d49.tar.bz2
mpv-d634394da6f71b93d61afbcc1c9d8c0eb4904d49.tar.xz
ao_alsa: make failure of buffer parameter setting non-fatal
These calls actually can leave the ALSA configuration space empty (how very useful), which is why snd_pcm_hw_params() can fail. An earlier change intended to make this non-fatal, but it didn't work for this reason. Backup the old parameters, so we can retry with the non-empty configuration space. (It has to be non-empty, because the previous setters didn't fail.) Note that the buffer settings are not very important to us. They're a leftover from MPlayer, which needed to write enough data to the audio device to not underrun while decoding and displaying a video frame. In mpv, most of these things happen asynchronously, _and_ there is a dedicated thread just for feeding the audio device, so we should be pretty imune even against extreme buffer settings. But I suppose it's still useful to prevent PulseAudio from making the buffer too large, so still keep this code.
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions