alsa broken when the computer is suspended (or hibernate)
When a sound software paused a media and the computer is put to sleep (suspend or hibernate), on the next resume, when playing a media VLC will keep saying :
alsa audio output error: write failed (Streams pipe error)
alsa audio output error: write failed (Streams pipe error)
alsa audio output error: write failed (Streams pipe error)
the only solution is to run a sound software that handles alsa resume (mplayer, xmms) then VLC will run fine.
The attached patch (idea taken from mplayer) fixes the problem.
-- Aurelien Nephtali