Re: [Jack-Devel] [jack2] jack_port_get_connections() ignores client (#47)

PrevNext  Index
DateMon, 06 Jan 2014 10:21:42 +0100
From Stéphane Letz <[hidden] at grame dot fr>
Tojackaudio/jack2 <[hidden] at reply dot github dot com>
Cc"[hidden] at lists dot jackaudio dot org Developers" <[hidden] at lists dot jackaudio dot org>, jackaudio/jack2 <[hidden] at noreply dot github dot com>
Follow-UpPaul Davis Re: [Jack-Devel] [jack2] jack_port_get_connections() ignores client (#47)
Le 25 d飮 2013 ࠲2:55, falkTX <[hidden]> a 飲it :

> According to the JACK API, jack_port_get_connections() should only return connections if we're the owner of the port. See:
> http://jackaudio.org/files/docs/html/group__PortFunctions.html#ga4e1bd29a68acb4fb45f75931de0d36b2
> (2nd note)
> 
> But in JACK2, using that function always returns non-NULL for all ports (like system:* ones).
> JACK2 should verify if we own the port being passed in the function parameter, and return NULL if not.
> 
> related code is at https://github.com/jackaudio/jack2/blob/master/common/JackAPI.cpp#L1097
> 
> —
> Reply to this email directly or view it on GitHub.
> 


How do we know that "we own the port" since jack_port_get_connections does not have a jack_client_t* parameter ?

St鰨ane
PrevNext  Index

1388999962.15381_0.ltw:2, <3629E28A-ED08-48AB-AEE9-344F114B366E at grame dot fr>