diff options
author | Eric <ewild@sysmocom.de> | 2020-07-16 18:08:30 +0200 |
---|---|---|
committer | Eric <ewild@sysmocom.de> | 2020-08-25 01:00:19 +0200 |
commit | 4080eb76f890ea21bb89b402c0b5b6b1b05b9428 (patch) | |
tree | 93ff848723d37a72d6d5e30cdf75a4dea51c2f10 /Transceiver52M/device/ipc/IPCDevice.cpp | |
parent | 1e17c4fb0a77dcee49a7cd566dca7e8f48f6d8e7 (diff) |
devices: reset internal smart sample buffers upon stop
They are too smart, they keep the timestamps.
Change-Id: Idb4b8f03eb5ffdfd6d3fdbc137b20e3ddc4cfa65
Diffstat (limited to 'Transceiver52M/device/ipc/IPCDevice.cpp')
-rw-r--r-- | Transceiver52M/device/ipc/IPCDevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Transceiver52M/device/ipc/IPCDevice.cpp b/Transceiver52M/device/ipc/IPCDevice.cpp index 4a1f8b6..32a46e5 100644 --- a/Transceiver52M/device/ipc/IPCDevice.cpp +++ b/Transceiver52M/device/ipc/IPCDevice.cpp @@ -980,6 +980,10 @@ bool IPCDevice::stop() LOGC(DDEV, NOTICE) << "All channels stopped, terminating..."; + /* reset internal buffer timestamps */ + for (size_t i = 0; i < rx_buffers.size(); i++) + rx_buffers[i]->reset(); + started = false; return true; } |