From 413e4bb104858e6a1027036c7195fd02976f140d Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Tue, 13 Aug 2024 18:21:25 +0000 Subject: [PATCH] fix wrong buffer pool for write --- ww/devices/capture/capture_linux.c | 2 +- ww/devices/raw/raw_linux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ww/devices/capture/capture_linux.c b/ww/devices/capture/capture_linux.c index 382e1aa..c753f02 100644 --- a/ww/devices/capture/capture_linux.c +++ b/ww/devices/capture/capture_linux.c @@ -335,7 +335,7 @@ static HTHREAD_ROUTINE(routineWriteToCapture) // NOLINT nwrite = sendto(cdev->socket, ip_header, bufLen(buf), 0, (struct sockaddr *) (&to_addr), sizeof(to_addr)); - reuseBuffer(cdev->reader_buffer_pool, buf); + reuseBuffer(cdev->writer_buffer_pool, buf); if (nwrite < 0) { diff --git a/ww/devices/raw/raw_linux.c b/ww/devices/raw/raw_linux.c index 38b6f53..43d89e1 100644 --- a/ww/devices/raw/raw_linux.c +++ b/ww/devices/raw/raw_linux.c @@ -121,7 +121,7 @@ static HTHREAD_ROUTINE(routineWriteToRaw) // NOLINT nwrite = sendto(rdev->socket, ip_header, bufLen(buf), 0, (struct sockaddr *) (&to_addr), sizeof(to_addr)); - reuseBuffer(rdev->reader_buffer_pool, buf); + reuseBuffer(rdev->writer_buffer_pool, buf); if (nwrite < 0) {