From 7f579f159748bd53ed8cc80a7eef738a98a2c2bb Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 28 Jun 2024 20:22:23 +0200 Subject: [PATCH] Fix concurrent access on decoded images --- client/scenes/stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 27070515..d3f81b8f 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -243,7 +243,7 @@ void scenes::stream::push_blit_handle(shard_accumulator * decoder, std::shared_p return; { - std::shared_lock lock(decoder_mutex); + std::unique_lock lock(decoder_mutex); for (auto & i: decoders) { if (i.decoder.get() == decoder)