summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-11-15 00:32:36 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-11-15 00:32:36 +0000
commitd0fabdea11ff98dae6f4c8e7a122c6782f4a9d78 (patch)
treed78b166c545a06453cfe06cf6ee20aa6598f9e42 /src
parentac2eeb361efb3f73fe5e47e60be8843d47f95992 (diff)
downloadxine-lib-d0fabdea11ff98dae6f4c8e7a122c6782f4a9d78.tar.gz
xine-lib-d0fabdea11ff98dae6f4c8e7a122c6782f4a9d78.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/audio_out.c5
1 files changed, 3 insertions, 2 deletions
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 <andy@alsaplayer.org>
@@ -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);