On 2012-06-07 18:44:22 -0400, Sean McGovern wrote:
> Fixes Bugzilla #279

when was the new interface added? if it's really old we probably
should add an configure check.

> ---
>  libavdevice/jack_audio.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c
> index 9f1bb23..adc2e2b 100644
> --- a/libavdevice/jack_audio.c
> +++ b/libavdevice/jack_audio.c
> @@ -91,7 +91,9 @@ static int process_callback(jack_nframes_t nframes, void 
> *arg)
>  
>      /* Copy and interleave audio data from the JACK buffer into the packet */
>      for (i = 0; i < self->nports; i++) {
> -        latency += jack_port_get_total_latency(self->client, self->ports[i]);
> +        jack_latency_range_t range;
> +        jack_port_get_latency_range(self->ports[i], JackCaptureLatency, 
> &range);
> +        latency += range.max;
>          buffer = jack_port_get_buffer(self->ports[i], self->buffer_size);
>          for (j = 0; j < self->buffer_size; j++)
>              pkt_data[j * self->nports + i] = buffer[j];

otherwise ok

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to