Skip to content

Commit

Permalink
remove mutex from get_uncompressed_item_data() as it is not used for …
Browse files Browse the repository at this point in the history
…image data anymore and the locking should be in Box_iloc::read_data() anyway
  • Loading branch information
farindk committed Oct 2, 2024
1 parent 0eb4109 commit da93fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ heif_chroma HeifFile::get_image_chroma_from_configuration(heif_item_id imageID)
Error HeifFile::get_uncompressed_item_data(heif_item_id ID, std::vector<uint8_t>* data) const
{
#if ENABLE_PARALLEL_TILE_DECODING
std::lock_guard<std::mutex> guard(m_read_mutex);
// std::lock_guard<std::mutex> guard(m_read_mutex); // TODO: I think that this is not needed anymore because this function is not used for image data anymore.
#endif

if (!image_exists(ID)) {
Expand Down

0 comments on commit da93fdc

Please sign in to comment.