vorbisenc: Properly generate the channel-mask on the sinkpad caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 Jan 2012 16:10:35 +0000 (17:10 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 Jan 2012 16:10:35 +0000 (17:10 +0100)
ext/vorbis/gstvorbisenc.c

index 0e4156c..44ea535 100644 (file)
@@ -272,7 +272,7 @@ gst_vorbis_enc_generate_sink_caps (void)
     const GstAudioChannelPosition *pos = gst_vorbis_channel_positions[i - 1];
 
     for (c = 0; c < i; c++) {
-      channel_mask |= pos[i];
+      channel_mask |= G_GUINT64_CONSTANT (1) << pos[i];
     }
 
     structure = gst_structure_new ("audio/x-raw",