Mercurial > mplayer.hg
view tests/refupdate.sh @ 34564:96019b1174b8
Workaround a bug in Pulse Audio (http://pulseaudio.org/ticket/866)
that causes 2 second delay while trying to drain the current stream.
It seems that if we wait for the data to be played before calling
the pa_stream_drain function, it would not block for the whole
duration of its internal buffer, thus avoid the 2 seconds delay.
The code of this workaround is already used in ao_jack and ao_sdl.
Special thanks to Rune Heggtveit <pblc heggtveit n>
who did all the heavy lifting in finding a working solution.
author | iive |
---|---|
date | Fri, 03 Feb 2012 23:11:48 +0000 |
parents | 6dc79618ec0e |
children |
line wrap: on
line source
#!/bin/sh # updates all changed/new results in ref/ find res -name '*.bad' | while read bad_res ; do ref_file="ref/${bad_res#res/}" ref_file="${ref_file%.bad}" mkdir -p "$(dirname "$ref_file")" cp "$bad_res" "$ref_file" done