From d26cbc8c663b56976224a433c18817be5a57fe45 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Thu, 29 Mar 2007 12:14:22 +0000 Subject: gst/wavenc/gstwavenc.c: Correctly handle width!=depth input. Original commit message from CVS: * gst/wavenc/gstwavenc.c: (gst_wavenc_create_header_buf), (gst_wavenc_sink_setcaps): Correctly handle width!=depth input. * gst/wavparse/gstwavparse.c: Already export in the caps that width==8 uses unsigned samples and everything else uses signed samples. --- gst/wavparse/gstwavparse.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gst/wavparse/gstwavparse.c') diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index d3619ae4..c0defcdc 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -110,11 +110,18 @@ static GstStaticPadTemplate src_template_factory = GST_PAD_SOMETIMES, GST_STATIC_CAPS ("audio/x-raw-int, " "endianness = (int) little_endian, " - "signed = (boolean) { true, false }, " - "width = (int) { 8, 16, 24, 32 }, " + "signed = (boolean) true, " + "width = (int) { 16, 24, 32 }, " "depth = (int) [ 1, 32 ], " "rate = (int) [ 8000, 96000 ], " "channels = (int) [ 1, 8 ]; " + "audio/x-raw-int, " + "endianness = (int) little_endian, " + "signed = (boolean) false, " + "width = (int) 8, " + "depth = (int) [ 1, 8 ], " + "rate = (int) [ 8000, 96000 ], " + "channels = (int) [ 1, 8 ]; " "audio/ms-gsm; " "audio/mpeg, " "mpegversion = (int) 1, " -- cgit