From 1fc2cf8425eff768e117bb4eff659204fdaf81dc Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Tue, 14 Aug 2012 17:08:35 +0300 Subject: [PATCH] loopback: Don't fix the source output format/rate/channels. Once the sink input has been routed in pa_sink_input_new(), the sample spec and channel map have already become fixed. The sink input and source output must use the same stream format, because the data is copied as-is. --- src/modules/module-loopback.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c index d80494a1c..461c4a731 100644 --- a/src/modules/module-loopback.c +++ b/src/modules/module-loopback.c @@ -887,15 +887,6 @@ int pa__init(pa_module *m) { if (!remix) source_output_data.flags |= PA_SOURCE_OUTPUT_NO_REMIX; - if (!format_set) - source_output_data.flags |= PA_SOURCE_OUTPUT_FIX_FORMAT; - - if (!rate_set) - source_output_data.flags |= PA_SOURCE_OUTPUT_FIX_RATE; - - if (!channels_set) - source_output_data.flags |= PA_SOURCE_OUTPUT_FIX_CHANNELS; - source_dont_move = FALSE; if (pa_modargs_get_value_boolean(ma, "source_dont_move", &source_dont_move) < 0) { pa_log("source_dont_move= expects a boolean argument.");