From 38b24e40fcc689e074421e78bbb5778d5e4258fc Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Wed, 18 Apr 2012 11:41:48 +0200 Subject: [PATCH] sink/source.h: Clarify set_port comment State which thread calls set_port in which scenario. Reported-by: Jyri Sasha Signed-off-by: David Henningsson --- src/pulsecore/sink.h | 4 ++-- src/pulsecore/source.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pulsecore/sink.h b/src/pulsecore/sink.h index 9bc8047..0b5048a 100644 --- a/src/pulsecore/sink.h +++ b/src/pulsecore/sink.h @@ -211,8 +211,8 @@ struct pa_sink { * thread context. */ pa_sink_cb_t update_requested_latency; /* may be NULL */ - /* Called whenever the port shall be changed. Called from main - * thread. */ + /* Called whenever the port shall be changed. Called from IO + * thread if deferred volumes are enabled, and main thread otherwise. */ int (*set_port)(pa_sink *s, pa_device_port *port); /* may be NULL */ /* Called to get the list of formats supported by the sink, sorted diff --git a/src/pulsecore/source.h b/src/pulsecore/source.h index d81782a..30c2037 100644 --- a/src/pulsecore/source.h +++ b/src/pulsecore/source.h @@ -174,8 +174,8 @@ struct pa_source { * thread context. */ pa_source_cb_t update_requested_latency; /* may be NULL */ - /* Called whenever the port shall be changed. Called from main - * thread. */ + /* Called whenever the port shall be changed. Called from IO + * thread if deferred volumes are enabled, and main thread otherwise. */ int (*set_port)(pa_source *s, pa_device_port *port); /*ditto */ /* Called to get the list of formats supported by the source, sorted -- 2.7.4