1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 11:40:33 +00:00

Fixed block iteration withing a file

The `File` object only holds a shallow reference to its `Lane` (without the list of blocks). So we must retrieve the full reference manually.
This commit is contained in:
Victor Castillo 2024-06-24 18:06:01 +02:00
parent 38d548ba50
commit 5c442c8aae
No known key found for this signature in database
GPG Key ID: 8EF1FC8B7182F608

View File

@ -46,10 +46,14 @@ std::vector<IONMetadataStdFileSource::sptr> GnssMetadataHandler::make_stream_sou
std::vector<IONMetadataStdFileSource::sptr> sources{};
for (const auto& file : metadata_.Files())
{
for (const auto& block : file.Lane().Blocks())
for (const auto& lane : metadata_.Lanes())
{
for (const auto& chunk : block.Chunks())
if (lane.Id() == file.Lane().Id())
{
for (const auto& block : lane.Blocks())
{
for (const auto& chunk : block.Chunks())
{
for (const auto& lump : chunk.Lumps())
{
for (const auto& stream : lump.Streams())
@ -71,8 +75,11 @@ std::vector<IONMetadataStdFileSource::sptr> GnssMetadataHandler::make_stream_sou
}
}
}
}
next_block:
}
break;
}
next_block:
}
}