mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
properly initialize pa_stream::corked based on the flags
This commit is contained in:
parent
1514d13835
commit
85b83e8e8c
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue