sccn / liblsl

C++ lsl library for multi-modal time-synched data transmission over the local network
Other
107 stars 63 forks source link

max_buflen min inconsistency #156

Open cboulay opened 2 years ago

cboulay commented 2 years ago

During the data_receiver creation, it initializes consumer_queue sample_queue_ with max_buflen here.

In the former (data_receiver), it throws an error if max_buflen < 0. This error can never be thrown because in consumerqueue it asserts that `size`, which is provided by max_buflen, is greater than 1 -- yet there's no message to explain the problem.

So how should we clean this up?