Fix concurrent access on decoded images

This commit is contained in:
Patrick Nicolas
2024-06-28 20:22:23 +02:00
parent 222c8b139d
commit 7f579f1597
+1 -1
View File
@@ -243,7 +243,7 @@ void scenes::stream::push_blit_handle(shard_accumulator * decoder, std::shared_p
return; return;
{ {
std::shared_lock lock(decoder_mutex); std::unique_lock lock(decoder_mutex);
for (auto & i: decoders) for (auto & i: decoders)
{ {
if (i.decoder.get() == decoder) if (i.decoder.get() == decoder)