fixed reversed source and destination node ids, by using the new BMedisRoster::Disconnect function.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16626 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen
2006-03-07 12:54:02 +00:00
parent 65b73ae4f2
commit 75daf5566e
+1 -2
View File
@@ -263,8 +263,7 @@ BSoundPlayer::~BSoundPlayer()
// our node is already stopped, and we can't stop the System Mixer.
// So, we just disconnect from it, and release our references to the nodes that
// we're using. We *are* supposed to do that even for global nodes like the Mixer.
err = roster->Disconnect(fMediaInput.node.node, fMediaInput.source,
fMediaOutput.node.node, fMediaOutput.destination);
err = roster->Disconnect(fMediaOutput, fMediaInput);
#if DEBUG >0
if (err) {
TRACE("BSoundPlayer::~BSoundPlayer: Error disconnecting nodes: %ld (%s)\n", err, strerror(err));