fix: Clear the old captured data when start capture

This commit is contained in:
dreamsourcelabTAI 2023-03-06 15:49:05 +08:00
parent 9ec207a9b4
commit 9d5ac99fc2

View File

@ -455,12 +455,16 @@ namespace pv
int run_dex = 0;
clear_all_decode_task(run_dex);
_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;