mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
stream: Allow record streams to start muted
This check was valid before we introduced per-source-output volumes, so dropping it now. Thanks to Alban Browaeys <prahal@yahoo.com> for catching this.
This commit is contained in:
parent
5412a69cac
commit
f72a32151c
1 changed files with 0 additions and 1 deletions
|
|
@ -1213,7 +1213,6 @@ 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, !volume || s->n_formats || (pa_sample_spec_valid(&s->sample_spec) && 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue