From 85b83e8e8cb7ddc154f6bf06b588ea93fe263186 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 26 Jun 2008 00:42:09 +0200 Subject: properly initialize pa_stream::corked based on the flags --- src/pulse/stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pulse/stream.c b/src/pulse/stream.c index b3f9697f..33ab710c 100644 --- a/src/pulse/stream.c +++ b/src/pulse/stream.c @@ -880,6 +880,7 @@ static int create_stream( s->direction = direction; s->flags = flags; + s->corked = !!(flags & PA_STREAM_START_CORKED); if (sync_stream) s->syncid = sync_stream->syncid; @@ -919,7 +920,7 @@ static int create_stream( PA_TAG_U32, PA_INVALID_INDEX, PA_TAG_STRING, dev, PA_TAG_U32, s->buffer_attr.maxlength, - PA_TAG_BOOLEAN, !!(flags & PA_STREAM_START_CORKED), + PA_TAG_BOOLEAN, s->corked, PA_TAG_INVALID); if (s->direction == PA_STREAM_PLAYBACK) { -- cgit