deinterleave: properly set srcpad channel position
authorPhilippe Normand <philn@igalia.com>
Wed, 12 Dec 2012 11:07:34 +0000 (12:07 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 12 Dec 2012 11:20:56 +0000 (11:20 +0000)
The src pad caps always describe a single audio channel so only the
first position matters if deinterleave is configured to keep channel
positions in its src pads.

gst/interleave/deinterleave.c

index f632458..795300d 100644 (file)
@@ -271,7 +271,7 @@ gst_deinterleave_set_pads_caps (GstDeinterleave * self, GstCaps * caps)
     GstAudioInfo info;
     gst_audio_info_from_caps (&info, caps);
     if (self->keep_positions)
-      GST_AUDIO_INFO_POSITION (&info, i) =
+      GST_AUDIO_INFO_POSITION (&info, 0) =
           GST_AUDIO_INFO_POSITION (&self->audio_info, i);
 
     srccaps = gst_audio_info_to_caps (&info);