pulsesrc: Remove redundant channel-mask setting for stereo case
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 14 Aug 2012 04:07:45 +0000 (09:37 +0530)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 22 Aug 2012 09:38:41 +0000 (11:38 +0200)
The gstaudio helper libraries already take care of this case for us.

ext/pulse/pulsesrc.c

index d41010a..5e1ee89 100644 (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;