summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/port_manager.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc
index 00648dda8b..841a04a4f5 100644
--- a/libs/ardour/port_manager.cc
+++ b/libs/ardour/port_manager.cc
@@ -1380,19 +1380,19 @@ PortManager::check_for_amibiguous_latency (bool log) const
{
bool rv = false;
boost::shared_ptr<Ports> plist = ports.reader();
- for (Ports::iterator p = plist->begin(); p != plist->end(); ++p) {
- for (int c = 0; c < 1; ++c) {
- LatencyRange range;
- p->second->get_connected_latency_range (range, c ? true : false);
- if (range.min != range.max) {
- if (log) {
- warning << string_compose(_("PortEngine: ambiguous %1 latency for port '%2' (%3, %4)"),
- (c ? "playback" : "capture"), p->second->name(), range.min, range.max)
- << endmsg;
- rv = true;
- } else {
+ for (Ports::iterator pi = plist->begin(); pi != plist->end(); ++pi) {
+ boost::shared_ptr<Port> const& p (pi->second);
+ if (! p->sends_output ()) {
+ continue;
+ }
+ LatencyRange range;
+ p->get_connected_latency_range (range, true);
+ if (range.min != range.max) {
+ if (log) {
+ warning << string_compose(_("Ambiguous latency for port '%1' (%2, %3)"), p->name(), range.min, range.max) << endmsg;
+ rv = true;
+ } else {
return true;
- }
}
}
}