Re: [LAU] Segfault using zita-j2a

From: Fons Adriaensen <fons@email-addr-hidden>
Date: Thu Oct 25 2012 - 18:51:24 EEST

On Thu, Oct 25, 2012 at 05:23:28PM +0200, Robin Gareus wrote:

> Classic race condition. The jack_client is activated before the
> resampler is initialized.
>
> zita-j2a.cc:200 creates the jack-client and calls jack_activate.
> process_callbacks can arrive starting now.
>
> but not until zita-j2a.cc:211 calls J->start() the data-structures
> required to do the processing are initialized.
>
> Easiest solution is probably to check if start() has been called in the
> process callback:

The code to do that is already present: jackclient:cc line 311.
There must be some other problem.

Ciao,

-- 
FA
A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Thu Oct 25 20:15:03 2012

This archive was generated by hypermail 2.1.8 : Thu Oct 25 2012 - 20:15:03 EEST