Fix length calculation for pulse

This commit is contained in:
Chris Robinson
2009-10-31 19:30:12 -07:00
parent 87dc7a5b97
commit d964bb9f2f
+1 -1
View File
@@ -266,7 +266,7 @@ static void stream_write_callback(pa_stream *stream, size_t len, void *pdata) //
ALCdevice *Device = pdata;
pulse_data *data = Device->ExtraData;
len -= len&data->attr.minreq;
len -= len%data->attr.minreq;
if(len > 0)
{
void *buf = ppa_xmalloc0(len);