diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2003-03-15 13:50:58 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2003-03-15 13:50:58 +0000 |
commit | 1dcd406060a4f43af337327cceae332b43de1015 (patch) | |
tree | e25bccebc77779132c8bf85c833d133e472c5ce6 | |
parent | c4e7fecc264e8ea76df26b03cd2c9a973b0f283f (diff) | |
download | xine-lib-1dcd406060a4f43af337327cceae332b43de1015.tar.gz xine-lib-1dcd406060a4f43af337327cceae332b43de1015.tar.bz2 |
should do snd_pcm_prepare after snd_pcm_drop as otherwise we are left in SND_PCM_STATE_SETUP - fixes bad state errors when seeking
CVS patchset: 4423
CVS date: 2003/03/15 13:50:58
-rw-r--r-- | src/audio_out/audio_alsa_out.c | 7 |
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; } |