Browse Source

Check dynamic port-max value.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3840 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/v1.9.5
sletz 15 years ago
parent
commit
57a2bd59b7
2 changed files with 7 additions and 2 deletions
  1. +1
    -1
      ChangeLog
  2. +6
    -1
      common/JackControlAPI.cpp

+ 1
- 1
ChangeLog View File

@@ -6,7 +6,6 @@ Dmitry Baikov
Steven Chamberlain
Thom Johansen
Thibault LeMeur
Pieter Palmers
Tom Szilagyi
Andrzej Szombierski
Kjetil S.Matheussen
@@ -31,6 +30,7 @@ Devin Anderson
* Special code in JackCoreAudio driver to handle completely buggy Digidesign CoreAudio user-land driver.
* Ensure that client-side message buffer thread calls thread_init callback if/when it is set by the client (backport of JACK1 rev 3838).
* Check dynamic port-max value.

2009-12-01 Stephane Letz <letz@grame.fr>


+ 6
- 1
common/JackControlAPI.cpp View File

@@ -882,9 +882,14 @@ jackctl_server_start(

if (!server_ptr->realtime.b && server_ptr->client_timeout.i == 0)
server_ptr->client_timeout.i = 500; /* 0.5 sec; usable when non realtime. */
/* check port max value before allocating server */
if (server_ptr->port_max.ui > PORT_NUM_MAX) {
jack_error("JACK server started with too much ports %d (when port max can be %d)", server_ptr->port_max.ui, PORT_NUM_MAX);
goto fail;
}

/* get the engine/driver started */

server_ptr->engine = new JackServer(
server_ptr->sync.b,
server_ptr->temporary.b,


Loading…
Cancel
Save