From fd99c296a7e22e0fece24de6eb4f2e7299b25475 Mon Sep 17 00:00:00 2001 From: sletz Date: Tue, 20 Nov 2007 15:51:20 +0000 Subject: [PATCH] Correct CheckPort in JackAPI.cpp. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1707 0c269be4-1314-0410-8aa9-9f06e86f4224 --- ChangeLog | 4 ++++ common/JackAPI.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 59281cf9..5d2827e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,10 @@ Kjetil S.Matheussen Jackdmp changes log --------------------------- +2007-11-20 Stephane Letz + + * Correct CheckPort in JackAPI.cpp. + 2007-11-15 Stephane Letz * Move OSX start/stop notification mechanism in Jackdmp.cpp. diff --git a/common/JackAPI.cpp b/common/JackAPI.cpp index 7da76105..fb2a7dca 100644 --- a/common/JackAPI.cpp +++ b/common/JackAPI.cpp @@ -221,7 +221,7 @@ inline double rint(double nr) static inline bool CheckPort(jack_port_id_t port_index) { - return (port_index < PORT_NUM); + return (port_index > 0 && port_index < PORT_NUM); } static inline bool CheckBufferSize(jack_nframes_t buffer_size)