Re: [linux-audio-dev] Jack Callbacks

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Jack Callbacks
From: Steve Harris (S.W.Harris_AT_ecs.soton.ac.uk)
Date: Sun Feb 01 2004 - 12:37:04 EET


On Sat, Jan 31, 2004 at 01:51:48PM -0500, Dave Robillard wrote:
> > --- 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).

The only thing I added was the notification to the other clients that the
ports were being deregistered. It always happend before.

We need a comment from the Benevolent Dictator as to wether this is a good
idea.

- Steve


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Feb 01 2004 - 12:43:03 EET