pulsesrc: Remove redundant channel-mask setting for stereo case

The gstaudio helper libraries already take care of this case for us.
This commit is contained in:
Arun Raghavan 2012-08-14 09:37:45 +05:30 committed by Wim Taymans
parent fe83843abe
commit e317d88eaa

View file

@ -1152,9 +1152,6 @@ gst_pulsesrc_create_stream (GstPulseSrc * pulsesrc, GstCaps ** caps)
if (spec.info.channels == 1) {
pa_channel_map_init_mono (&channel_map);
} else if (spec.info.channels == 2) {
gst_structure_set (s, "channel-mask", GST_TYPE_BITMASK,
GST_AUDIO_CHANNEL_POSITION_MASK (FRONT_LEFT) |
GST_AUDIO_CHANNEL_POSITION_MASK (FRONT_RIGHT), NULL);
pa_channel_map_init_stereo (&channel_map);
} else {
need_channel_layout = TRUE;