Browse Source

Correct CheckPort in JackAPI.cpp.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1707 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.68
sletz 18 years ago
parent
commit
fd99c296a7
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      ChangeLog
  2. +1
    -1
      common/JackAPI.cpp

+ 4
- 0
ChangeLog View File

@@ -15,6 +15,10 @@ Kjetil S.Matheussen
Jackdmp changes log
---------------------------

2007-11-20 Stephane Letz <letz@grame.fr>
* Correct CheckPort in JackAPI.cpp.

2007-11-15 Stephane Letz <letz@grame.fr>
* Move OSX start/stop notification mechanism in Jackdmp.cpp.


+ 1
- 1
common/JackAPI.cpp View File

@@ -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)


Loading…
Cancel
Save