From d0fabdea11ff98dae6f4c8e7a122c6782f4a9d78 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 15 Nov 2001 00:32:36 +0000 Subject: fix segfault playing mono/low rate streams. we need to check if 4x is enough for all resample cases!! CVS patchset: 1039 CVS date: 2001/11/15 00:32:36 --- src/xine-engine/audio_out.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index e34b6e37d..7f59f1ea8 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.25 2001/11/10 19:34:25 jkeil Exp $ + * $Id: audio_out.c,v 1.26 2001/11/15 00:32:36 miguelfreitas Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -611,7 +611,8 @@ ao_instance_t *ao_new_instance (ao_driver_t *driver, metronom_t *metronom, this->get_property = ao_get_property; this->set_property = ao_set_property; this->audio_loop_running = 0; - this->frame_buffer = xmalloc (40000); + /* FIXME: is 4* good enough for all resample cases?? */ + this->frame_buffer = xmalloc (4 * AUDIO_BUF_SIZE); this->zero_space = xmalloc (ZERO_BUF_SIZE * 2 * 6); this->gap_tolerance = driver->get_gap_tolerance (this->driver); -- cgit v1.2.3