flacenc: set right number of channels on caps in get_caps function
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 22 Feb 2012 16:59:42 +0000 (16:59 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 22 Feb 2012 16:59:42 +0000 (16:59 +0000)
ext/flac/gstflacenc.c

index e9cbc7c..8c94a57 100644 (file)
@@ -653,7 +653,7 @@ gst_flac_enc_getcaps (GstAudioEncoder * enc, GstCaps * filter)
 
         gst_audio_channel_positions_to_mask (channel_positions[i - 1], i,
             &channel_mask);
-        gst_structure_set (s, "channels", G_TYPE_INT, 1, "channel-mask",
+        gst_structure_set (s, "channels", G_TYPE_INT, i, "channel-mask",
             GST_TYPE_BITMASK, channel_mask, NULL);
       }