sink/source.h: Clarify set_port comment

State which thread calls set_port in which scenario.

Reported-by: Jyri Sasha <oku@iki.fi>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
David Henningsson 2012-04-18 11:41:48 +02:00
parent 9e55b29c28
commit 38b24e40fc
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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