output/jack: use SIZE_MAX instead of (size_t)-1
This commit is contained in:
parent
3ef043392c
commit
f6d0310f9c
@ -602,7 +602,7 @@ JackOutput::WriteSamples(const float *src, size_t n_frames)
|
|||||||
const unsigned n_channels = audio_format.channels;
|
const unsigned n_channels = audio_format.channels;
|
||||||
|
|
||||||
float *dest[MAX_CHANNELS];
|
float *dest[MAX_CHANNELS];
|
||||||
size_t space = -1;
|
size_t space = SIZE_MAX;
|
||||||
for (unsigned i = 0; i < n_channels; ++i) {
|
for (unsigned i = 0; i < n_channels; ++i) {
|
||||||
jack_ringbuffer_data_t d[2];
|
jack_ringbuffer_data_t d[2];
|
||||||
jack_ringbuffer_get_write_vector(ringbuffer[i], d);
|
jack_ringbuffer_get_write_vector(ringbuffer[i], d);
|
||||||
|
Loading…
Reference in New Issue
Block a user