diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index 858d09777a..f53a24160b 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -644,13 +644,13 @@ gst_flac_enc_getcaps (GstAudioEncoder * enc, GstCaps * filter) s2 = gst_structure_copy (s); if (i == 1) { - gst_structure_set (s, "channels", G_TYPE_INT, 1, NULL); + gst_structure_set (s2, "channels", G_TYPE_INT, 1, NULL); } else { guint64 channel_mask; gst_audio_channel_positions_to_mask (channel_positions[i - 1], i, &channel_mask); - gst_structure_set (s, "channels", G_TYPE_INT, i, "channel-mask", + gst_structure_set (s2, "channels", G_TYPE_INT, i, "channel-mask", GST_TYPE_BITMASK, channel_mask, NULL); }