]> code.delx.au - pulseaudio/commitdiff
sink/source.h: Clarify set_port comment
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 18 Apr 2012 09:41:48 +0000 (11:41 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Wed, 18 Apr 2012 09:41:48 +0000 (11:41 +0200)
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>
src/pulsecore/sink.h
src/pulsecore/source.h

index 9bc8047534d6c3414d3a0289d1bf90e992cd9a81..0b5048a9f57ad8ea8a7bda2d433ea153a8a15dba 100644 (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
index d81782aad240b79d73c8547f5d45561dfb1182eb..30c2037b2d60f0eb8f65da6ea5d31931a8b8d235 100644 (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