summaryrefslogtreecommitdiffstats
path: root/gst/wavparse/gstwavparse.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-03-29 12:14:22 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-03-29 12:14:22 +0000
commitd26cbc8c663b56976224a433c18817be5a57fe45 (patch)
tree5732494a06a38567e2b16aa1edd742c3e905a365 /gst/wavparse/gstwavparse.c
parent112216c22f971c56ad8c3e952b146868180cd157 (diff)
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.
Diffstat (limited to 'gst/wavparse/gstwavparse.c')
-rw-r--r--gst/wavparse/gstwavparse.c11
1 files changed, 9 insertions, 2 deletions
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, "