projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1dc816
)
deinterleave: properly set srcpad channel position
author
Philippe Normand
<philn@igalia.com>
Wed, 12 Dec 2012 11:07:34 +0000
(12:07 +0100)
committer
Sebastian 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
patch
|
blob
|
history
diff --git
a/gst/interleave/deinterleave.c
b/gst/interleave/deinterleave.c
index
f632458
..
795300d
100644
(file)
--- 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);