From f27670a112d90c6053e84b82d109793f87a40065 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Sat, 14 Oct 2023 11:56:26 +1100 Subject: [PATCH] acquire spi lock in the opus tag parser --- src/database/file_gatherer.cpp | 1 + src/database/tag_parser.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/database/file_gatherer.cpp b/src/database/file_gatherer.cpp index 55777139..0809ee0d 100644 --- a/src/database/file_gatherer.cpp +++ b/src/database/file_gatherer.cpp @@ -70,6 +70,7 @@ auto FileGathererImpl::FindFiles( } } + auto lock = drivers::acquire_spi(); f_closedir(&dir); to_explore.pop_front(); } diff --git a/src/database/tag_parser.cpp b/src/database/tag_parser.cpp index bec41507..83b37b91 100644 --- a/src/database/tag_parser.cpp +++ b/src/database/tag_parser.cpp @@ -256,6 +256,7 @@ auto GenericTagParser::ReadAndParseTags(const std::pmr::string& path) auto OpusTagParser::ReadAndParseTags(const std::pmr::string& path) -> std::shared_ptr { + auto lock = drivers::acquire_spi(); std::pmr::string vfs_path = "/sdcard" + path; int err; OggOpusFile* f = op_test_file(vfs_path.c_str(), &err);