From 0c8fdf30d103b0ed877917f39cf6003f40867400 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Thu, 28 Jun 2012 16:34:56 +0300 Subject: [PATCH] sink, source: Fix setting the latency offset when the sink/source is unlinked. --- src/pulsecore/sink.c | 2 +- src/pulsecore/source.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 1a1332d3a..6186204d7 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -3256,7 +3256,7 @@ void pa_sink_set_latency_offset(pa_sink *s, int64_t offset) { if (PA_SINK_IS_LINKED(s->state)) pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_SET_LATENCY_OFFSET, NULL, offset, NULL) == 0); else - s->thread_info.fixed_latency = offset; + s->thread_info.latency_offset = offset; } /* Called from main context */ diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c index 9e3a7dcc8..f59abea18 100644 --- a/src/pulsecore/source.c +++ b/src/pulsecore/source.c @@ -2540,7 +2540,7 @@ void pa_source_set_latency_offset(pa_source *s, int64_t offset) { if (PA_SOURCE_IS_LINKED(s->state)) pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_SET_LATENCY_OFFSET, NULL, offset, NULL) == 0); else - s->thread_info.fixed_latency = offset; + s->thread_info.latency_offset = offset; } /* Called from main thread */