From 4ab89b397e32c041fd8174071a7686b8547643d0 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Wed, 20 Aug 2008 17:17:55 +0000 Subject: ext/pulse/: If downstream provides no channel layout and >2 channels should be used use the default layout that pulse... Original commit message from CVS: * ext/pulse/pulsesrc.c: (gst_pulsesrc_class_init), (gst_pulsesrc_create_stream), (gst_pulsesrc_negotiate), (gst_pulsesrc_prepare): * ext/pulse/pulseutil.c: (gst_pulse_gst_to_channel_map), (gst_pulse_channel_map_to_gst): * ext/pulse/pulseutil.h: If downstream provides no channel layout and >2 channels should be used use the default layout that pulseaudio chooses and also add this layout to the caps. Fixes bug #547258. --- ext/pulse/pulseutil.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/pulse/pulseutil.h') diff --git a/ext/pulse/pulseutil.h b/ext/pulse/pulseutil.h index f4689849..8700a979 100644 --- a/ext/pulse/pulseutil.h +++ b/ext/pulse/pulseutil.h @@ -32,6 +32,9 @@ gboolean gst_pulse_fill_sample_spec (GstRingBufferSpec * spec, gchar *gst_pulse_client_name (void); pa_channel_map *gst_pulse_gst_to_channel_map (pa_channel_map * map, + const GstRingBufferSpec * spec); + +GstRingBufferSpec *gst_pulse_channel_map_to_gst (const pa_channel_map * map, GstRingBufferSpec * spec); #endif -- cgit