summaryrefslogtreecommitdiffstats
path: root/src/OutputFile.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 09:21:25 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 09:21:25 +0100
commit23b369e1145c5652778345827b7df9c33e09d0e8 (patch)
treed734d0ce91141883124cd693ccad840e452108f8 /src/OutputFile.cpp
parent1d833b718845b97a5b1d90f33b547b1772bc0708 (diff)
downloaddabmod-23b369e1145c5652778345827b7df9c33e09d0e8.tar.gz
dabmod-23b369e1145c5652778345827b7df9c33e09d0e8.tar.bz2
dabmod-23b369e1145c5652778345827b7df9c33e09d0e8.zip
Add metadata latency for all PipelinedModCodec
Diffstat (limited to 'src/OutputFile.cpp')
-rw-r--r--src/OutputFile.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/OutputFile.cpp b/src/OutputFile.cpp
index 3bb45c4..481e858 100644
--- a/src/OutputFile.cpp
+++ b/src/OutputFile.cpp
@@ -77,22 +77,26 @@ meta_vec_t OutputFile::process_metadata(const meta_vec_t& metadataIn)
for (const auto& md : metadataIn) {
if (md.ts) {
- ss << "FCT=" << md.ts->fct <<
+ ss << " FCT=" << md.ts->fct <<
" FP=" << (int)md.ts->fp;
- if (md.ts->timestamp_valid) {
- ss << " ts=" << md.ts->timestamp_sec <<
- "+" << md.ts->timestamp_pps << ", ";
- }
- else {
- ss << " no ts";
- }
}
else {
- ss << "void, ";
+ ss << " void, ";
}
}
+ if (myEtiSource) {
+ frame_timestamp ts;
+ myEtiSource->calculateTimestamp(ts);
+ ss << " ETI FCT=" << ts.fct;
+ }
+
etiLog.level(debug) << "Output File got metadata: " << ss.str();
return {};
}
+
+void OutputFile::setETISource(EtiSource *etiSource)
+{
+ myEtiSource = etiSource;
+}