summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-12-29 16:37:27 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-12-29 16:54:38 +0200
commitc447ef4e746fe4952f547b5f21e21cb3f052caa5 (patch)
tree17cd9b183cad894029fe0d8f27a14bb7afeaf8c5 /libmpdemux
parent57ce95b96a9d5ff75b5afa608bdda8366a999cf5 (diff)
downloadmpv-c447ef4e746fe4952f547b5f21e21cb3f052caa5.tar.bz2
mpv-c447ef4e746fe4952f547b5f21e21cb3f052caa5.tar.xz
ao_alsa: Reinitialize parameters properly when reopening
ao_alsa used static variables to define the parameter values for snd_pcm_hw_params_set_buffer_time_near() and snd_pcm_hw_params_set_periods_near(). The variables were non-const and the desired value was only set in the initializer. The ALSA functions in question take a pointer argument to an in/out parameter which is modified to reflect the value actually used. As a result, when playing multiple files or otherwise reinitializing the AO the later instances could use values that had been modified by earlier calls. Change the code to always always use the same default values.
Diffstat (limited to 'libmpdemux')
0 files changed, 0 insertions, 0 deletions