Re: [pulseaudio-discuss] [PATCH] Fix pacat memory issue

2017-07-30 Thread Tanu Kaskinen
On Sun, 2017-07-30 at 23:40 +0300, Denis Shulyaka wrote: > If only part of the buffer is written into stdout by stdout_callback, the > buffer_index variable is increased by the number of written bytes, > buffer_length variable is decreased while the allocated buffer size remains > the same.

[pulseaudio-discuss] [PATCH] Fix pacat memory issue

2017-07-30 Thread Denis Shulyaka
If only part of the buffer is written into stdout by stdout_callback, the buffer_index variable is increased by the number of written bytes, buffer_length variable is decreased while the allocated buffer size remains the same. That suggests that the current allocated size is calculated as