Hi,
Any reason why source-output doesn't look like sink-input on this line?
If not, feel free to apply the attached patch.
The pa_assert abort it fixes is here:
https://launchpadlibrarian.net/81637482/ThreadStacktrace.txt
--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
>From 335bc7ded5c361aef798d0247bcf743a5a27b372 Mon Sep 17 00:00:00 2001
From: David Henningsson <[email protected]>
Date: Wed, 5 Oct 2011 11:15:53 +0200
Subject: [PATCH] source-output: Do not use unset channel map in
pa_source_output_new
This problem was found when tracing down a crash coming from the
esound protocol, which does not set a channel map.
BugLink: http://bugs.launchpad.net/bugs/864071
Signed-off-by: David Henningsson <[email protected]>
---
src/pulsecore/source-output.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/pulsecore/source-output.c b/src/pulsecore/source-output.c
index ea0e760..f6ad009 100644
--- a/src/pulsecore/source-output.c
+++ b/src/pulsecore/source-output.c
@@ -243,7 +243,8 @@ int pa_source_output_new(
* to using the sample spec and channel map after all decisions w.r.t.
* routing are complete. */
pa_idxset *tmp = pa_idxset_new(NULL, NULL);
- pa_format_info *f = pa_format_info_from_sample_spec(&data->sample_spec, &data->channel_map);
+ pa_format_info *f = pa_format_info_from_sample_spec(&data->sample_spec,
+ data->channel_map_is_set ? &data->channel_map : NULL);
pa_idxset_put(tmp, f, NULL);
pa_source_output_new_data_set_formats(data, tmp);
}
--
1.7.5.4
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss