From 20cf298065c7d7fbdff3b3ca72af8704466c801a Mon Sep 17 00:00:00 2001 From: sletz Date: Thu, 21 Feb 2008 17:26:02 +0000 Subject: [PATCH] Add port register/unregister notification in JackAlsaDriver(2). git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1870 0c269be4-1314-0410-8aa9-9f06e86f4224 --- linux/alsa/JackAlsaDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/alsa/JackAlsaDriver.cpp b/linux/alsa/JackAlsaDriver.cpp index cea953cf..21e04c57 100644 --- a/linux/alsa/JackAlsaDriver.cpp +++ b/linux/alsa/JackAlsaDriver.cpp @@ -2359,7 +2359,7 @@ int JackAlsaDriver::create_thread(pthread_t *thread, int priority, int realtime, int JackAlsaDriver::port_register(const char *port_name, const char *port_type, unsigned long flags, unsigned long buf_size) { int port_index = fGraphManager->AllocatePort(fClientControl->fRefNum, port_name, port_type, (JackPortFlags) flags, fEngineControl->fBufferSize); - if (port != NO_PORT) + if (port_index != NO_PORT) fEngine->NotifyPortRegistation(port_index, true); return port; }