mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-05 01:33:03 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user