aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputFile.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 11:51:03 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 11:51:03 +0100
commit28d794ab7d47e4f2585ac73f8a69c9c68962b678 (patch)
treee0d7dd92acf20ec5b20ec17c79310412528b66a2 /src/OutputFile.cpp
parent7ddaefab49e31a3ff360225b929633e7be161947 (diff)
downloaddabmod-28d794ab7d47e4f2585ac73f8a69c9c68962b678.tar.gz
dabmod-28d794ab7d47e4f2585ac73f8a69c9c68962b678.tar.bz2
dabmod-28d794ab7d47e4f2585ac73f8a69c9c68962b678.zip
Make frame_timestamp movable
Diffstat (limited to 'src/OutputFile.cpp')
-rw-r--r--src/OutputFile.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/OutputFile.cpp b/src/OutputFile.cpp
index 1c2f5ed..b7bf59a 100644
--- a/src/OutputFile.cpp
+++ b/src/OutputFile.cpp
@@ -71,21 +71,28 @@ meta_vec_t OutputFile::process_metadata(const meta_vec_t& metadataIn)
{
stringstream ss;
- if (metadataIn.empty()) {
- etiLog.level(debug) << "OutputFile: no mdIn";
- }
-
for (const auto& md : metadataIn) {
if (md.ts) {
ss << " FCT=" << md.ts->fct <<
" FP=" << (int)md.ts->fp;
+ if (md.ts->timestamp_valid) {
+ ss << " TS=" << md.ts->timestamp_sec << ";";
+ }
+ else {
+ ss << " No TS;";
+ }
}
else {
ss << " void, ";
}
}
- etiLog.level(debug) << "Output File got metadata: " << ss.str();
+ if (metadataIn.empty()) {
+ etiLog.level(debug) << "Output File got no mdIn";
+ }
+ else {
+ etiLog.level(debug) << "Output File got metadata: " << ss.str();
+ }
return {};
}