From f1c6cd32f031f22107c976dc228990fde2084554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 8 Dec 2003 08:41:36 +0000 Subject: [PATCH] Fixes the Connect bug git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5624 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/media/NodeManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/media/NodeManager.cpp b/src/servers/media/NodeManager.cpp index 763320744d..fe2b400627 100644 --- a/src/servers/media/NodeManager.cpp +++ b/src/servers/media/NodeManager.cpp @@ -378,7 +378,7 @@ NodeManager::FindNodeId(media_node_id *nodeid, port_id port) } media_output *output; for (rn->outputlist.Rewind(); rn->outputlist.GetNext(&output); ) { - if (output->source.port == port || output->destination.port == port) { + if (output->source.port == port) { *nodeid = rn->nodeid; TRACE("NodeManager::FindNodeId found output port %ld, node %ld\n", port, *nodeid); return B_OK; @@ -386,7 +386,7 @@ NodeManager::FindNodeId(media_node_id *nodeid, port_id port) } media_input *input; for (rn->inputlist.Rewind(); rn->inputlist.GetNext(&input); ) { - if (input->source.port == port || input->destination.port == port) { + if (input->destination.port == port) { *nodeid = rn->nodeid; TRACE("NodeManager::FindNodeId found input port %ld, node %ld\n", port, *nodeid); return B_OK;