}
if (err < 0) {
// Not available for capture.
- printf("%s: Not available for capture. %d\n", address, err);
+ printf("%s: Not available for capture.\n", address);
return ALSAPool::ProbeResult::DEFER;
}
{
lock_guard<mutex> lock(mu);
Device *device = &devices[index];
+ if (device->state == Device::State::DEAD) {
+ // Not running, and should not be started.
+ return;
+ }
if (inputs[index] != nullptr) {
inputs[index]->stop_capture_thread();
}