[pulseaudio-commits] src/pulsecore

David Henningsson diwic at kemper.freedesktop.org
Wed Apr 18 06:49:14 PDT 2012


 src/pulsecore/sink.h   |    4 ++--
 src/pulsecore/source.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 38b24e40fcc689e074421e78bbb5778d5e4258fc
Author: David Henningsson <david.henningsson at canonical.com>
Date:   Wed Apr 18 11:41:48 2012 +0200

    sink/source.h: Clarify set_port comment
    
    State which thread calls set_port in which scenario.
    
    Reported-by: Jyri Sasha <oku at iki.fi>
    Signed-off-by: David Henningsson <david.henningsson at canonical.com>

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



More information about the pulseaudio-commits mailing list