From 9d5ac99fc2ef6219bf7d4f263c9eaae0652bf080 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Mon, 6 Mar 2023 15:49:05 +0800 Subject: [PATCH] fix: Clear the old captured data when start capture --- DSView/pv/sigsession.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DSView/pv/sigsession.cpp b/DSView/pv/sigsession.cpp index 7922cffe..9490057e 100644 --- a/DSView/pv/sigsession.cpp +++ b/DSView/pv/sigsession.cpp @@ -455,12 +455,16 @@ namespace pv int run_dex = 0; clear_all_decode_task(run_dex); - // If switch the data buffer + _view_data->clear(); + + // If switch the data buffer if (_view_data != _capture_data){ _capture_data->clear(); _capture_data = _view_data; } + init_signals(); + // update setting if (_device_agent.is_file()) _is_instant = true;