[linux-audio-dev] Jack Callbacks

Dave Robillard drobilla at connect.carleton.ca
Sat Jan 31 18:51:48 UTC 2004


On Fri, 2004-01-30 at 20:10, Steve Harris wrote:

> If you apply the patch at the end of this mail I think it should turn it
> on, but I cant test it for various reasons.
> 
> - Steve
> 
> --- jackd/engine.c      13 Jan 2004 15:11:27 -0000      1.80
> +++ jackd/engine.c      31 Jan 2004 01:07:26 -0000
> @@ -1503,6 +1503,7 @@
>         for (node = client->ports; node; node = jack_slist_next (node)) {
>                 port = (jack_port_internal_t *) node->data;
>                 jack_port_clear_connections (engine, port);
> +               jack_port_registration_notify (engine, port->shared->id, FALSE);
>                 jack_port_release (engine, port);
>         }

Yep, that calls it.  Maybe it wasn't there before because apps are
expected to deregister their ports before exiting?  (None I've tested
actually do).

I don't see any problems having jack do it for clients though.. if the
client actually does deregister its ports before disconnecting, they
won't be around anymore (ie won't get double freed).

-Dave




More information about the Linux-audio-dev mailing list