[LAD] c/jack question

Dennis Schulmeister linux-audio-dev at windows3.de
Sun Apr 8 17:21:07 UTC 2012


Hi,

On Sun, 8 Apr 2012 13:01:50 -0400
Egor Sanin <egor.sanin at gmail.com> wrote:

> But then why does jack_transport_query not give any error when it is
> passed a NULL pointer in the form of pos?
> If I remove the line
> frame = pos->frame;
> from B, the code runs, state is set properly and jackd doesn't report problems.

I didn't look at the jack api, but calling jack_transport_query with a
null-pointer might be valid. In that case jack assumes you're not
interested in position data. iow, the jack authors didn't forget to
check for null-pointers.

Dennis

-- 
Dennis Schulmeister - Schifferstr. 1 - 76189 Karlsruhe - Germany
Tel: +49 721/5978883 - Fax: +49 721/5978882 -  Mob: +49 152/01994400
eMail: dennis at windows3.de - web: there-is.no-ip.org



More information about the Linux-audio-dev mailing list