summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink-input.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-20 20:30:03 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-20 20:30:03 +0000
commitc40c1682be62ccccedf626b1d9e335efe7a1101a (patch)
tree0bf473d7cee001908b61633264e21da0c5547caa /src/pulsecore/sink-input.h
parent75647bc38f8a65f45c6cee23d5b373c6c3b3ecdc (diff)
maintain the attach status in a boolean variable 'attach' accessible from the IO thread for sink_inputs/source_outputs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1872 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/sink-input.h')
-rw-r--r--src/pulsecore/sink-input.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/sink-input.h b/src/pulsecore/sink-input.h
index 152c24e6..fec431f0 100644
--- a/src/pulsecore/sink-input.h
+++ b/src/pulsecore/sink-input.h
@@ -124,6 +124,8 @@ struct pa_sink_input {
struct {
pa_sink_input_state_t state;
pa_atomic_t drained;
+
+ pa_bool_t attached; /* True only between ->attach() and ->detach() calls */
pa_sample_spec sample_spec;