mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-13 13:32:53 +08:00
fix: Clear the old captured data when start capture
This commit is contained in:
parent
9ec207a9b4
commit
9d5ac99fc2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user