output/alsa: don't recover on CANCEL

The recovery is for nothing if we get CLOSE afterwards.  Let's not
recover in the cancel() method, and let the next play() call sort it
out.
This commit is contained in:
Max Kellermann 2009-10-29 15:59:35 +01:00
parent cf8d278b78
commit f74ee1a352
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -35,6 +35,7 @@ ver 0.16 (20??/??/??)
- jack: don't disconnect during pause
- jack: connect to server on MPD startup
- wildcards allowed in audio_format configuration
- alsa: don't recover on CANCEL
* mixers:
- removed support for legacy mixer configuration
- reimplemented software volume as mixer+filter plugin

View File

@ -500,7 +500,7 @@ alsa_cancel(void *data)
{
struct alsa_data *ad = data;
alsa_recover(ad, snd_pcm_drop(ad->pcm));
snd_pcm_drop(ad->pcm);
}
static void