From: Grazvydas Ignotas Date: Thu, 10 Jul 2014 23:28:58 +0000 (+0300) Subject: free old buffers on create as there's no free ioctl X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c83434fe9f313c40503fa1a6924de6838c3f126d;p=sgx.git free old buffers on create as there's no free ioctl --- diff --git a/services4/3rdparty/bufferclass_ti/bc_cat.c b/services4/3rdparty/bufferclass_ti/bc_cat.c index e46964c..3786fed 100644 --- a/services4/3rdparty/bufferclass_ti/bc_cat.c +++ b/services4/3rdparty/bufferclass_ti/bc_cat.c @@ -343,8 +343,7 @@ static int BC_CreateBuffers(int id, bc_buf_params_t *p) } if (psDevInfo->ulNumBuffers) { - - return (BCE_ERROR_GENERIC); + BC_DestroyBuffers(id); }