summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-15 00:54:25 +0200
committerLennart Poettering <lennart@poettering.net>2009-08-15 00:54:25 +0200
commit3c271ae0605fcf1b6ca9ddfb21bda54a783e9926 (patch)
treeede3333d9f38c78172e47d90165864c2bab9282b /src
parentc6080d8c61df4991b96f4f144e58848f6c440440 (diff)
core: document difference between IO and main thread view on requested latency
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/sink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 77908c9a..c1589f2d 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -1917,6 +1917,9 @@ int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, int64_t offse
pa_usec_t *usec = userdata;
*usec = pa_sink_get_requested_latency_within_thread(s);
+ /* Yes, that's right, the IO thread will see -1 when no
+ * explicit requested latency is configured, the main
+ * thread will see max_latency */
if (*usec == (pa_usec_t) -1)
*usec = s->thread_info.max_latency;