From f968135a7f9103dd1919e8c3fcb89839ba957954 Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Mon, 16 Sep 2002 15:09:36 +0000 Subject: Introduce a deep copy in the xine_config_lookup functions. Care must be taken to make sure xine_cfg_entry_t is all zeros before any calls to xine_config_lookup functions. CVS patchset: 2673 CVS date: 2002/09/16 15:09:36 --- src/audio_out/audio_alsa_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/audio_out/audio_alsa_out.c') diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index d84b360c2..a4a0c6131 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 * * - * $Id: audio_alsa_out.c,v 1.78 2002/09/16 12:27:08 jcdutton Exp $ + * $Id: audio_alsa_out.c,v 1.79 2002/09/16 15:09:36 jcdutton Exp $ */ #ifdef HAVE_CONFIG_H @@ -326,11 +326,11 @@ static int ao_alsa_open(xine_ao_driver_t *this_gen, uint32_t bits, uint32_t rate goto __close; } period_size = snd_pcm_hw_params_get_period_size(params, NULL); - if (2*period_size > buffer_size) { printf ("audio_alsa_out: buffer to small, could not use\n"); goto __close; } + /* Check for pause/resume support */ this->has_pause_resume = ( snd_pcm_hw_params_can_pause (params) && snd_pcm_hw_params_can_resume (params) ); -- cgit v1.2.3