diff options
author | Alex Chronopoulos <[email protected]> | 2017-07-06 12:09:36 +0300 |
---|---|---|
committer | Alex Chronopoulos <[email protected]> | 2017-07-12 09:27:20 +0300 |
commit | 7590a1e232bc3c1c2d97e2c5c517404cc3c73388 (patch) | |
tree | 9f9f417213db32a1783eba38b7f95d0a88a1793a /src/cubeb_pulse.c | |
parent | 3cd65d2e7be3524ce6d4c86eed12a82f221dae9c (diff) | |
download | cubeb-7590a1e232bc3c1c2d97e2c5c517404cc3c73388.tar.gz cubeb-7590a1e232bc3c1c2d97e2c5c517404cc3c73388.zip |
Skip mixing when layout is set to undefined
Diffstat (limited to 'src/cubeb_pulse.c')
-rw-r--r-- | src/cubeb_pulse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cubeb_pulse.c b/src/cubeb_pulse.c index 9d02d28..45adfbe 100644 --- a/src/cubeb_pulse.c +++ b/src/cubeb_pulse.c @@ -751,8 +751,9 @@ create_pa_stream(cubeb_stream * stm, { assert(stm && stream_params); assert(&stm->input_stream == pa_stm || (&stm->output_stream == pa_stm && + (stream_params->layout == CUBEB_LAYOUT_UNDEFINED || stream_params->layout != CUBEB_LAYOUT_UNDEFINED && - CUBEB_CHANNEL_LAYOUT_MAPS[stream_params->layout].channels == stream_params->channels)); + CUBEB_CHANNEL_LAYOUT_MAPS[stream_params->layout].channels == stream_params->channels))); *pa_stm = NULL; pa_sample_spec ss; ss.format = to_pulse_format(stream_params->format); |