summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_jack.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2018-05-11 22:35:10 +0700
committerJan Ekström <jeebjp@gmail.com>2018-06-04 00:00:57 +0300
commit945303a92ecac73ba430b9eac0f10279cd95a32a (patch)
tree87a1b7d027b538616b7018319dfdce144e3b5cdf /audio/out/ao_jack.c
parent7f625ea29b1082248bcd17d6f1ee1a8b150e2bc7 (diff)
downloadmpv-945303a92ecac73ba430b9eac0f10279cd95a32a.tar.bz2
mpv-945303a92ecac73ba430b9eac0f10279cd95a32a.tar.xz
ao_alsa: replace snd_pcm_status() with snd_pcm_avail() in get_space()
Fixes a bug with alsa dmix on Fedora 29. After several minutes, audio suddenly becomes bad and muted. Actually, I don't know what causes this. Probably this is a bug in alsa. In any case, as snd_pcm_status() returns not only 'avail', but also other fields such as tstamp, htstamp, etc, this could be considered a good simplification, as only avail is required for this function.
Diffstat (limited to 'audio/out/ao_jack.c')
0 files changed, 0 insertions, 0 deletions