acquire spi lock in the opus tag parser

This commit is contained in:
jacqueline
2023-10-14 11:59:34 +11:00
parent ac320e376e
commit f27670a112
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -70,6 +70,7 @@ auto FileGathererImpl::FindFiles(
}
}
auto lock = drivers::acquire_spi();
f_closedir(&dir);
to_explore.pop_front();
}
+1
View File
@@ -256,6 +256,7 @@ auto GenericTagParser::ReadAndParseTags(const std::pmr::string& path)
auto OpusTagParser::ReadAndParseTags(const std::pmr::string& path)
-> std::shared_ptr<TrackTags> {
auto lock = drivers::acquire_spi();
std::pmr::string vfs_path = "/sdcard" + path;
int err;
OggOpusFile* f = op_test_file(vfs_path.c_str(), &err);