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:07 +0000 (02:33 +0300)
services4/3rdparty/bufferclass_ti/bc_cat.c

index f61578b..0e32963 100644 (file)
@@ -349,8 +349,7 @@ static int BC_CreateBuffers(int id, bc_buf_params_t *p)
         }
         if (psDevInfo->ulNumBuffers)
         {
-
-                return (BCE_ERROR_GENERIC);
+                BC_DestroyBuffers(id);
         }