diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-05-17 09:09:29 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-05-17 09:09:29 +0000 |
commit | e35bae8a651d1d63d83eff6f689983b1058f6f1c (patch) | |
tree | 3d903044b5b2cfaa16d5e6cba2d23eaff1331480 /src | |
parent | 856a2f96c6e84b18c9c7a0d7422d8474a6092c23 (diff) |
fix pa_stream flag checking
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2452 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r-- | src/pulse/stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/stream.c b/src/pulse/stream.c index 4268fd6f..7d49cfd5 100644 --- a/src/pulse/stream.c +++ b/src/pulse/stream.c @@ -860,8 +860,8 @@ static int create_stream( * when they are passed but actually not supported. This makes * client development easier */ - PA_CHECK_VALIDITY(s->context, direction != PA_STREAM_PLAYBACK || !(flags & (PA_STREAM_START_MUTED)), PA_ERR_INVALID); - PA_CHECK_VALIDITY(s->context, direction != PA_STREAM_RECORD || !(flags & (PA_STREAM_PEAK_DETECT)), PA_ERR_INVALID); + PA_CHECK_VALIDITY(s->context, direction == PA_STREAM_PLAYBACK || !(flags & (PA_STREAM_START_MUTED)), PA_ERR_INVALID); + PA_CHECK_VALIDITY(s->context, direction == PA_STREAM_RECORD || !(flags & (PA_STREAM_PEAK_DETECT)), PA_ERR_INVALID); PA_CHECK_VALIDITY(s->context, !volume || volume->channels == s->sample_spec.channels, PA_ERR_INVALID); PA_CHECK_VALIDITY(s->context, !sync_stream || (direction == PA_STREAM_PLAYBACK && sync_stream->direction == PA_STREAM_PLAYBACK), PA_ERR_INVALID); |