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.
This commit is contained in:
Tanu Kaskinen 2012-08-14 17:08:35 +03:00 committed by Tanu Kaskinen
parent a68652a42c
commit 1fc2cf8425

View file

@ -887,15 +887,6 @@ int pa__init(pa_module *m) {
if (!remix) if (!remix)
source_output_data.flags |= PA_SOURCE_OUTPUT_NO_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; source_dont_move = FALSE;
if (pa_modargs_get_value_boolean(ma, "source_dont_move", &source_dont_move) < 0) { if (pa_modargs_get_value_boolean(ma, "source_dont_move", &source_dont_move) < 0) {
pa_log("source_dont_move= expects a boolean argument."); pa_log("source_dont_move= expects a boolean argument.");