summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audio_out/audio_alsa_out.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c
index 2ef0ab07e..e8f0eb25d 100644
--- a/src/audio_out/audio_alsa_out.c
+++ b/src/audio_out/audio_alsa_out.c
@@ -26,7 +26,7 @@
* (c) 2001 James Courtier-Dutton <James@superbug.demon.co.uk>
*
*
- * $Id: audio_alsa_out.c,v 1.87 2003/03/04 10:30:27 mroi Exp $
+ * $Id: audio_alsa_out.c,v 1.88 2003/03/15 13:50:58 jstembridge Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -793,7 +793,10 @@ static int ao_alsa_ctrl(ao_driver_t *this_gen, int cmd, ...) {
if ((result=snd_pcm_drop(this->audio_fd)) < 0) {
printf("audio_alsa_out: Drop call failed err=%d\n",result);
}
- }
+ if ((result=snd_pcm_prepare(this->audio_fd)) < 0) {
+ printf("audio_alsa_out: Prepare call failed err=%d\n",result);
+ }
+ }
break;
}