diff options
author | gcocatre@gmail.com <gcocatre@gmail.com> | 2005-12-16 09:59:21 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2005-12-16 09:59:21 +0000 |
commit | b11584fe36fd150d82c868817df1332c0c51fb14 (patch) | |
tree | 90d4c02ec6a1868d7180a7b6f897d80bd4d4fab1 /ext | |
parent | 9a85a17c4d5ad1aa5000264f56d7ea801c3b5ce7 (diff) | |
download | gst-plugins-bad-b11584fe36fd150d82c868817df1332c0c51fb14.tar.gz gst-plugins-bad-b11584fe36fd150d82c868817df1332c0c51fb14.tar.bz2 gst-plugins-bad-b11584fe36fd150d82c868817df1332c0c51fb14.zip |
ext/wavpack/: Wavpack supports samplerates from 6-192kHz, fix pad template remove buffer-frames from caps, they are g...
Original commit message from CVS:
* ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_link):
* ext/wavpack/gstwavpackparse.c:
Wavpack supports samplerates from 6-192kHz, fix pad template
caps (fixes #322973; patch by: gcocatre@gmail.com). Also
remove buffer-frames from caps, they are gone in 0.10.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/wavpack/gstwavpackdec.c | 11 | ||||
-rw-r--r-- | ext/wavpack/gstwavpackparse.c | 2 |
2 files changed, 5 insertions, 8 deletions
diff --git a/ext/wavpack/gstwavpackdec.c b/ext/wavpack/gstwavpackdec.c index de7e87fd..1664b20f 100644 --- a/ext/wavpack/gstwavpackdec.c +++ b/ext/wavpack/gstwavpackdec.c @@ -45,7 +45,7 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", GST_STATIC_CAPS ("audio/x-wavpack, " "width = (int) { 8, 16, 24, 32 }, " "channels = (int) { 1, 2 }, " - "rate = (int) [ 8000, 96000 ], " "framed = (boolean) true") + "rate = (int) [ 6000, 192000 ], " "framed = (boolean) true") ); static GstStaticPadTemplate wvc_sink_factory = @@ -62,14 +62,13 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", "width = (int) { 8, 16, 24 }, " "depth = (int) { 8, 16, 24 }, " "channels = (int) { 1, 2 }, " - "rate = (int) [ 8000, 96000 ], " + "rate = (int) [ 6000, 192000 ], " "endianness = (int) LITTLE_ENDIAN, " "signed = (boolean) true;" "audio/x-raw-float, " "width = (int) 32, " "channels = (int) { 1, 2 }, " - "rate = (int) [ 8000, 96000 ], " - "endianness = (int) LITTLE_ENDIAN, " "buffer-frames = (int) 0") + "rate = (int) [ 6000, 192000 ], " "endianness = (int) LITTLE_ENDIAN, ") ); static void gst_wavpack_dec_class_init (GstWavpackDecClass * klass); @@ -110,9 +109,7 @@ gst_wavpack_dec_link (GstPad * pad, GstPad * peer) srccaps = gst_caps_new_simple ("audio/x-raw-float", "rate", G_TYPE_INT, wavpackdec->samplerate, "channels", G_TYPE_INT, wavpackdec->channels, - "width", G_TYPE_INT, 32, - "endianness", G_TYPE_INT, LITTLE_ENDIAN, - "buffer-frames", G_TYPE_INT, 0, NULL); + "width", G_TYPE_INT, 32, "endianness", G_TYPE_INT, LITTLE_ENDIAN, NULL); } gst_pad_set_caps (wavpackdec->srcpad, srccaps); gst_pad_use_fixed_caps (wavpackdec->srcpad); diff --git a/ext/wavpack/gstwavpackparse.c b/ext/wavpack/gstwavpackparse.c index 726c8841..5621d4e6 100644 --- a/ext/wavpack/gstwavpackparse.c +++ b/ext/wavpack/gstwavpackparse.c @@ -56,7 +56,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_STATIC_CAPS ("audio/x-wavpack, " "width = (int) { 8, 16, 24 }, " "channels = (int) { 1, 2 }, " - "rate = (int) [ 8000, 96000 ], " "framed = (boolean) true") + "rate = (int) [ 6000, 192000 ], " "framed = (boolean) true") ); static GstStaticPadTemplate wvc_src_factory = GST_STATIC_PAD_TEMPLATE ("wvcsrc", |