summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-stream.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-07 14:58:42 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-07 14:58:42 +0000
commit93c8fe6577b59176ed6a54a1ae98f8749f122dc8 (patch)
tree7d3864484d318a41024c3cfa9af0b158bc24f6c3 /polyp/polyplib-stream.c
parent0fa499db56dc9111ddd866080606cb8b0379280e (diff)
change the way the default sink/source is selected
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@183 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-stream.c')
-rw-r--r--polyp/polyplib-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/polyplib-stream.c b/polyp/polyplib-stream.c
index 7170a32e..a66a0fc6 100644
--- a/polyp/polyplib-stream.c
+++ b/polyp/polyplib-stream.c
@@ -239,7 +239,7 @@ static void create_stream(struct pa_stream *s, const char *dev, const struct pa_
pa_tagstruct_putu32(t, tag = s->context->ctag++);
pa_tagstruct_puts(t, s->name);
pa_tagstruct_put_sample_spec(t, &s->sample_spec);
- pa_tagstruct_putu32(t, (uint32_t) -1);
+ pa_tagstruct_putu32(t, PA_INVALID_INDEX);
pa_tagstruct_puts(t, dev ? dev : "");
pa_tagstruct_putu32(t, s->buffer_attr.maxlength);
if (s->direction == PA_STREAM_PLAYBACK) {