mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
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).
This commit is contained in:
parent
56b1a888fd
commit
c53ad3009d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue