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:
parent
38d548ba50
commit
5c442c8aae
@ -46,7 +46,11 @@ 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())
|
||||
{
|
||||
if (lane.Id() == file.Lane().Id())
|
||||
{
|
||||
for (const auto& block : lane.Blocks())
|
||||
{
|
||||
for (const auto& chunk : block.Chunks())
|
||||
{
|
||||
@ -74,6 +78,9 @@ std::vector<IONMetadataStdFileSource::sptr> GnssMetadataHandler::make_stream_sou
|
||||
}
|
||||
next_block:
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return sources;
|
||||
|
Loading…
Reference in New Issue
Block a user