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

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