sources: reselect after resetting selected source
Avoid showing in the sources report a selected source which has no samples (e.g. after replacement).
This commit is contained in:
parent
4e36295889
commit
cbee464c75
1 changed files with 3 additions and 0 deletions
|
@ -357,6 +357,9 @@ SRC_ResetInstance(SRC_Instance instance)
|
|||
memset(&instance->sel_info, 0, sizeof (instance->sel_info));
|
||||
|
||||
SST_ResetInstance(instance->stats);
|
||||
|
||||
if (selected_source_index == instance->index)
|
||||
SRC_SelectSource(NULL);
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
|
Loading…
Reference in a new issue