On 08.10.2015 22:34, Aric Stewart wrote:
buffer_size = RingBuffer_GetBufferSize(ext->ring_buffer);
RingBuffer_Read(ext->ring_buffer, ptr, packet, &buffer_size);
No idea what's going on there, but first call seems to be redundant. Also maybe it makes sense to make RingBuffer_Read return size since it's out-only argument right now?