AudioBackends: ignore setting latency of invalid port(s)

This commit is contained in:
Robin Gareus 2022-06-24 19:55:17 +02:00
parent fe0e997335
commit 64f9829b56
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 3 additions and 0 deletions

View file

@ -1407,6 +1407,7 @@ PortAudioBackend::set_latency_range (PortEngine::PortHandle port_handle, bool fo
boost::shared_ptr<BackendPort> port = boost::dynamic_pointer_cast<BackendPort>(port_handle);
if (!valid_port (port)) {
DEBUG_PORTS("BackendPort::set_latency_range (): invalid port.\n");
return;
}
port->set_latency_range (latency_range, for_playback);
}