]> code.delx.au - pulseaudio/commitdiff
stream: Allow record streams to start muted
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 21 Sep 2012 02:13:55 +0000 (10:13 +0800)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 21 Sep 2012 07:42:37 +0000 (15:42 +0800)
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.

src/pulse/stream.c

index 39338c1d1b2eb762da5f96ac009e1b8facce9ac0..2b6d3062ce8efabdcc5d854e2178eb2a008b3e3d 100644 (file)
@@ -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);