summaryrefslogtreecommitdiff
path: root/ext/flac/gstflacenc.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-02-22 16:59:42 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-02-22 16:59:42 +0000
commit9c5c33790ab5fae457b28377bd5db9579c93ecee (patch)
tree379168e8d31bd8d2cfa3ccb30b3998ea1b803ff8 /ext/flac/gstflacenc.c
parentca9532ccc58e69ccfc15226f093506ea868287a0 (diff)
downloadgstreamer-plugins-good-9c5c33790ab5fae457b28377bd5db9579c93ecee.tar.gz
flacenc: set right number of channels on caps in get_caps function
Diffstat (limited to 'ext/flac/gstflacenc.c')
-rw-r--r--ext/flac/gstflacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c
index e9cbc7ca8..8c94a5763 100644
--- a/ext/flac/gstflacenc.c
+++ b/ext/flac/gstflacenc.c
@@ -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);
}