Shorten a long line

This commit is contained in:
Chris Robinson
2009-12-26 07:42:16 -08:00
parent 3793919892
commit 89f59c0e1c
+5 -1
View File
@@ -856,7 +856,11 @@ static void pulse_capture_samples(ALCdevice *device, ALCvoid *buffer, ALCuint sa
/* Any unread data in the fragment will be lost, so save it */
length /= data->frame_size;
if(length > 0)
WriteRingBuffer(data->ring, buf, (length<data->samples) ? length : data->samples);
{
if(length > data->samples)
length = data->samples;
WriteRingBuffer(data->ring, buf, length);
}
ppa_stream_drop(data->stream);
}