summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2012-06-28 16:34:56 +0300
committerTanu Kaskinen <tanuk@iki.fi>2012-06-28 16:34:56 +0300
commit0c8fdf30d103b0ed877917f39cf6003f40867400 (patch)
tree5e8b6169ea17b2859ff58eb38e21e6c575e9a609
parentbf4091dcf8a6d9b5fe627a7d1cad56c24a74a587 (diff)
sink, source: Fix setting the latency offset when the sink/source is unlinked.
-rw-r--r--src/pulsecore/sink.c2
-rw-r--r--src/pulsecore/source.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 1a1332d3..6186204d 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 9e3a7dcc..f59abea1 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 */