summaryrefslogtreecommitdiff
path: root/gst/interleave
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2012-12-12 12:07:34 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-12 11:20:56 +0000
commita8fa9f2b477cd6537ec0ddf9715654ba5e54b462 (patch)
tree0f7200a53fc76ddb1844e761f0d9b8aa244fed4e /gst/interleave
parentb1dc8167728343eb5f122dde277762413303e61b (diff)
downloadgstreamer-plugins-good-a8fa9f2b477cd6537ec0ddf9715654ba5e54b462.tar.gz
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.
Diffstat (limited to 'gst/interleave')
-rw-r--r--gst/interleave/deinterleave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/interleave/deinterleave.c b/gst/interleave/deinterleave.c
index f6324587e..795300d55 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);