aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/SDR.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-03 14:24:27 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-03 14:24:27 +0100
commit89e4bcbcba5883355a9b4777cea2bce0a1afd53d (patch)
treee4e64194db9d1af0cac724fa63072d756a67a68f /src/output/SDR.cpp
parent05d3e26409a8f62c7f55851390d61d953f59489a (diff)
downloaddabmod-89e4bcbcba5883355a9b4777cea2bce0a1afd53d.tar.gz
dabmod-89e4bcbcba5883355a9b4777cea2bce0a1afd53d.tar.bz2
dabmod-89e4bcbcba5883355a9b4777cea2bce0a1afd53d.zip
Dexter: calculate frame margin from system time
Diffstat (limited to 'src/output/SDR.cpp')
-rw-r--r--src/output/SDR.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp
index 0b3299a..e22617e 100644
--- a/src/output/SDR.cpp
+++ b/src/output/SDR.cpp
@@ -213,7 +213,7 @@ void SDR::process_thread_entry()
}
if (m_device) {
- handle_frame(frame);
+ handle_frame(std::move(frame));
}
}
}
@@ -260,7 +260,7 @@ void SDR::sleep_through_frame()
t_last_frame += wait_time;
}
-void SDR::handle_frame(struct FrameData& frame)
+void SDR::handle_frame(struct FrameData&& frame)
{
// Assumes m_device is valid
@@ -386,7 +386,7 @@ void SDR::handle_frame(struct FrameData& frame)
" TS " << frame.ts.to_string();
}
- m_device->transmit_frame(frame);
+ m_device->transmit_frame(std::move(frame));
}
// =======================================