From beb0419df1ab72b650ecce78d310c65f3b0b8175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 1 Apr 2010 18:35:48 +0000 Subject: [PATCH] Patch from Pete Goodeve: add MidiPortGlue to have old midikit endpoints registered in new midikit (#5625). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36019 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/midi/MidiPort.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kits/midi/MidiPort.cpp b/src/kits/midi/MidiPort.cpp index f1007133f5..aa73bb6d94 100644 --- a/src/kits/midi/MidiPort.cpp +++ b/src/kits/midi/MidiPort.cpp @@ -29,6 +29,8 @@ BMidiPort::BMidiPort(const char* name) fLocalSource = new BMidiLocalProducer("MidiPortGlue(out)"); fLocalSink = new BMidiPortGlue(this, "MidiPortGlue(in)"); + fLocalSource->Register(); + fLocalSink->Register(); fRemoteSource = NULL; fRemoteSink = NULL; @@ -47,6 +49,8 @@ BMidiPort::~BMidiPort() EmptyDeviceList(); delete fDevices; + fLocalSource->Unregister(); + fLocalSink->Unregister(); fLocalSource->Release(); fLocalSink->Release(); }