diff options
| author | Mistivia <i@mistivia.com> | 2025-09-13 14:07:15 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-09-13 14:07:15 +0800 |
| commit | ae14c862d2a3a4ce38c6fbc6ae317b56f8ff4d92 (patch) | |
| tree | fe886720e7fac5f91830b5761a71a60934e1fac5 /ringbuf.c | |
| parent | e0ee036ebc12598fdb6261ee3036919ac440a724 (diff) | |
fix output stream index bug
Diffstat (limited to 'ringbuf.c')
| -rw-r--r-- | ringbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -81,7 +81,7 @@ size_t RingBuffer_read(RingBuffer *self, uint8_t *data, size_t len) { pthread_mutex_lock(&self->mutex); while (read < len) { - while (RingBuffer_space(self) == 0) { + while (RingBuffer_size(self) == 0) { if (self->finished_flag) { goto end; } |
