[0.11] gst-plugins-good: flacenc: set right number of channels on caps in get_caps function
Tim Müller
tpm at kemper.freedesktop.org
Wed Feb 22 09:10:26 PST 2012
Module: gst-plugins-good
Branch: 0.11
Commit: 9c5c33790ab5fae457b28377bd5db9579c93ecee
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=9c5c33790ab5fae457b28377bd5db9579c93ecee
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date: Wed Feb 22 16:59:42 2012 +0000
flacenc: set right number of channels on caps in get_caps function
---
ext/flac/gstflacenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c
index e9cbc7c..8c94a57 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);
}
More information about the gstreamer-commits
mailing list