uhd: use value already cached in tmp variable

Change-Id: I4568eaed6db3da12f83f2f503a50032f7bfb482c
This commit is contained in:
Pau Espin 2019-12-19 13:52:57 +01:00
parent 501d053b70
commit 0a2a40f43c
1 changed files with 1 additions and 1 deletions

View File

@ -742,7 +742,7 @@ int uhd_device::readSamples(std::vector<short *> &bufs, int len, bool *overrun,
for (size_t i = 0; i < rx_buffers.size(); i++) {
rc = rx_buffers[i]->write((short *) &pkt_bufs[i].front(),
num_smpls,
metadata.time_spec.to_ticks(rx_rate));
ts.to_ticks(rx_rate));
// Continue on local overrun, exit on other errors
if ((rc < 0)) {