From: Philippe Normand Date: Wed, 12 Dec 2012 11:07:34 +0000 (+0100) Subject: deinterleave: properly set srcpad channel position X-Git-Tag: 1.19.3~509^2~6323 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8fa9f2b477cd6537ec0ddf9715654ba5e54b462;p=platform%2Fupstream%2Fgstreamer.git deinterleave: properly set srcpad channel position 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. --- diff --git a/gst/interleave/deinterleave.c b/gst/interleave/deinterleave.c index f632458..795300d 100644 --- a/gst/interleave/deinterleave.c +++ b/gst/interleave/deinterleave.c @@ -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);