Closed masnagam closed 4 years ago
At least the --time-limit
option works fine:
$ recpt1 --device /dev/px4video7 26 - - 2>/dev/null | MIRAKC_ARIB_LOG=info \
mirakc-arib collect-eits --sids=1032 --sids=1033 --sids=1034 --time-limit=0
[2020-02-09 06:02:25.049] [collect-eits] [info] Read packets from STDIN...
[2020-02-09 06:02:25.050] [collect-eits] [info] --sids SIDs: 1032, 1033, 1034
[2020-02-09 06:02:25.050] [collect-eits] [info] --xsids SIDs:
[2020-02-09 06:02:25.050] [collect-eits] [info] Time-Limit: 0
[2020-02-09 06:02:25.050] [collect-eits] [info] Feed packets...
[2020-02-09 06:02:25.800] [collect-eits] [error] Timed out
[2020-02-09 06:02:25.800] [collect-eits] [info] Collected 0 services, 0 sections, 0:00.750 elapsed
[2020-02-09 06:02:25.800] [collect-eits] [info] Ended to feed packets unsuccessfully
Ugh!
modified src/eit_collector.hh
@@ -885,7 +885,7 @@ class EitCollector final : public PacketSink,
}
inline bool CheckTimeout() const {
- auto elapsed = last_updated_ - timestamp_;
+ auto elapsed = timestamp_ - last_updated_;
return elapsed >= option_.time_limit;
}
A snippet from
mirakc
log:The defualt
time_limit
is 30s, but the command never terminates after timeout...