Skip to content
Snippets Groups Projects
Commit ce5691fa authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Corrections to merge bugs

parent 47f18841
No related branches found
No related tags found
No related merge requests found
Pipeline #16859 passed
...@@ -45,6 +45,8 @@ int main(int argc, char **argv) { ...@@ -45,6 +45,8 @@ int main(int argc, char **argv) {
return -1; return -1;
} }
LOG(INFO) << "Opening("<< i <<"): " << paths[i];
rs[i] = new ftl::codecs::Reader(fs[i]); rs[i] = new ftl::codecs::Reader(fs[i]);
if (!rs[i]->begin()) { if (!rs[i]->begin()) {
LOG(ERROR) << "Bad ftl file format"; LOG(ERROR) << "Bad ftl file format";
...@@ -73,7 +75,7 @@ int main(int argc, char **argv) { ...@@ -73,7 +75,7 @@ int main(int argc, char **argv) {
// FIXME: Need to truncate other stream if the following returns // FIXME: Need to truncate other stream if the following returns
// no frames, meaning the timeshift causes this stream to run out // no frames, meaning the timeshift causes this stream to run out
// before the main stream. // before the main stream.
rs[j]->read(spkt.timestamp+timeoff, [&out,&idmap,&lastid,j,r,stream_mask2,timeoff](const ftl::codecs::StreamPacket &spkt, const ftl::codecs::Packet &pkt) { rs[j]->read(spkt.timestamp+timeoff+1, [&out,&idmap,&lastid,j,r,stream_mask2,timeoff](const ftl::codecs::StreamPacket &spkt, const ftl::codecs::Packet &pkt) {
if (((0x1 << spkt.streamID) & stream_mask2) == 0) return; if (((0x1 << spkt.streamID) & stream_mask2) == 0) return;
if (int(spkt.channel) < 32 && spkt.timestamp < r->getStartTime()+timeoff) return; if (int(spkt.channel) < 32 && spkt.timestamp < r->getStartTime()+timeoff) return;
......
...@@ -584,6 +584,7 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r ...@@ -584,6 +584,7 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r
vector<string> paths; vector<string> paths;
while (argc-- > 0) { while (argc-- > 0) {
paths.push_back(argv[0]); paths.push_back(argv[0]);
argv++;
} }
if (!findConfiguration(options["config"], paths)) { if (!findConfiguration(options["config"], paths)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment