summaryrefslogtreecommitdiff
path: root/src/modules/module-loopback.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/module-loopback.c')
-rw-r--r--src/modules/module-loopback.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c
index 26d2e6a4..d80494a1 100644
--- a/src/modules/module-loopback.c
+++ b/src/modules/module-loopback.c
@@ -845,6 +845,11 @@ int pa__init(pa_module *m) {
if (!u->sink_input)
goto fail;
+ /* If format, rate or channels were originally unset, they are set now
+ * after the pa_sink_input_new() call. */
+ ss = u->sink_input->sample_spec;
+ map = u->sink_input->channel_map;
+
u->sink_input->parent.process_msg = sink_input_process_msg_cb;
u->sink_input->pop = sink_input_pop_cb;
u->sink_input->process_rewind = sink_input_process_rewind_cb;