summaryrefslogtreecommitdiffstats
path: root/gst/interleave
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-03-24 19:46:59 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-03-24 19:46:59 +0000
commitd0b8c40cec16ecef4b270d39c3e88bf4d0d3cda3 (patch)
treeda2af8608ea0fde502dee3d7a91ff9f5de21d708 /gst/interleave
parent628d19135f4c559c51d396ace9bbb899624d6bd9 (diff)
downloadgst-plugins-bad-d0b8c40cec16ecef4b270d39c3e88bf4d0d3cda3.tar.gz
gst-plugins-bad-d0b8c40cec16ecef4b270d39c3e88bf4d0d3cda3.tar.bz2
gst-plugins-bad-d0b8c40cec16ecef4b270d39c3e88bf4d0d3cda3.zip
gst/interleave/deinterleave.c: Remove 'channel-positions' field when munging input caps into 1-channel output caps (I...
Original commit message from CVS: * gst/interleave/deinterleave.c: (gst_deinterleave_sink_setcaps): Remove 'channel-positions' field when munging input caps into 1-channel output caps (I guess technically we should set the position for each channel on the output caps if it's non-NONE, but I'll save that as a task for another day).
Diffstat (limited to 'gst/interleave')
-rw-r--r--gst/interleave/deinterleave.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/interleave/deinterleave.c b/gst/interleave/deinterleave.c
index 7b2b5311..81bf9387 100644
--- a/gst/interleave/deinterleave.c
+++ b/gst/interleave/deinterleave.c
@@ -198,6 +198,7 @@ gst_deinterleave_sink_setcaps (GstPad * pad, GstCaps * caps)
if (!gst_structure_get_int (s, "channels", &self->channels))
goto no_channels;
gst_structure_set (s, "channels", G_TYPE_INT, 1, NULL);
+ gst_structure_remove_field (s, "channel-positions");
gst_deinterleave_add_new_pads (self, srccaps);
gst_caps_unref (srccaps);
}