From 4b24619160e948f2ef55db0876eaa4149e44ebcf Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 20 Jan 2025 14:00:21 +0100 Subject: [PATCH] rtp-source: avoid bitfield races The different bits are written to from different threads. --- src/modules/module-rtp-source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/module-rtp-source.c b/src/modules/module-rtp-source.c index 79411f0dc..911e2c729 100644 --- a/src/modules/module-rtp-source.c +++ b/src/modules/module-rtp-source.c @@ -165,8 +165,8 @@ struct impl { uint8_t *buffer; size_t buffer_size; - unsigned receiving:1; - unsigned last_receiving:1; + bool receiving; + bool last_receiving; }; static void