mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
adder: remove non-interleaved layout from caps
adder needs more than just trivial work to support planar buffers properly because it currently reads sub-buffers from GstCollectPads in order for all of them to have matching sizes. In planar mode, this means it would truncate some channels and mix them up in strange ways. It only works if all input buffers in all sink pads have matching sizes.
This commit is contained in:
parent
114f0abbd7
commit
a498d3fe6e
1 changed files with 2 additions and 2 deletions
|
@ -167,11 +167,11 @@ enum
|
|||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
#define CAPS \
|
||||
GST_AUDIO_CAPS_MAKE ("{ S32LE, U32LE, S16LE, U16LE, S8, U8, F32LE, F64LE }") \
|
||||
", layout = (string) { interleaved, non-interleaved }"
|
||||
", layout = (string) { interleaved }"
|
||||
#else
|
||||
#define CAPS \
|
||||
GST_AUDIO_CAPS_MAKE ("{ S32BE, U32BE, S16BE, U16BE, S8, U8, F32BE, F64BE }") \
|
||||
", layout = (string) { interleaved, non-interleaved }"
|
||||
", layout = (string) { interleaved }"
|
||||
#endif
|
||||
|
||||
static GstStaticPadTemplate gst_adder_src_template =
|
||||
|
|
Loading…
Reference in a new issue