From 2f35cebfe30c4ceafd90cb5baa21e2ed8f74d1f1 Mon Sep 17 00:00:00 2001 From: torben Date: Thu, 28 Jan 2010 17:49:23 +0000 Subject: [PATCH] remove the mixbuffer allocaton in jack_port_get_buffer and just bomb out. git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3891 0c269be4-1314-0410-8aa9-9f06e86f4224 --- libjack/port.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libjack/port.c b/libjack/port.c index de8304e..26704ab 100644 --- a/libjack/port.c +++ b/libjack/port.c @@ -559,9 +559,8 @@ jack_port_get_buffer (jack_port_t *port, jack_nframes_t nframes) connection process. */ if (port->mix_buffer == NULL) { - size_t buffer_size = jack_port_type_buffer_size (port->type_info, nframes); - port->mix_buffer = jack_pool_alloc (buffer_size); - port->fptr.buffer_init (port->mix_buffer, buffer_size, nframes); + jack_error( "internal jack error: mix_buffer not allocated" ); + return NULL; } port->fptr.mixdown (port, nframes); return (void *) port->mix_buffer;