free old buffers on create as there's no free ioctl
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 10 Jul 2014 23:28:58 +0000 (02:28 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 10 Jul 2014 23:33:20 +0000 (02:33 +0300)
services4/3rdparty/bufferclass_ti/bc_cat.c

index e46964c..3786fed 100644 (file)
@@ -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);
         }