mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
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.
This commit is contained in:
parent
9a85a17c4d
commit
b11584fe36
3 changed files with 13 additions and 8 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-12-16 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2005-12-15 Edgard Lima <edgard.lima@indt.org.br>
|
2005-12-15 Edgard Lima <edgard.lima@indt.org.br>
|
||||||
|
|
||||||
* ext/xvid/Makefile.am:
|
* ext/xvid/Makefile.am:
|
||||||
|
|
|
@ -45,7 +45,7 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_STATIC_CAPS ("audio/x-wavpack, "
|
GST_STATIC_CAPS ("audio/x-wavpack, "
|
||||||
"width = (int) { 8, 16, 24, 32 }, "
|
"width = (int) { 8, 16, 24, 32 }, "
|
||||||
"channels = (int) { 1, 2 }, "
|
"channels = (int) { 1, 2 }, "
|
||||||
"rate = (int) [ 8000, 96000 ], " "framed = (boolean) true")
|
"rate = (int) [ 6000, 192000 ], " "framed = (boolean) true")
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate wvc_sink_factory =
|
static GstStaticPadTemplate wvc_sink_factory =
|
||||||
|
@ -62,14 +62,13 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
"width = (int) { 8, 16, 24 }, "
|
"width = (int) { 8, 16, 24 }, "
|
||||||
"depth = (int) { 8, 16, 24 }, "
|
"depth = (int) { 8, 16, 24 }, "
|
||||||
"channels = (int) { 1, 2 }, "
|
"channels = (int) { 1, 2 }, "
|
||||||
"rate = (int) [ 8000, 96000 ], "
|
"rate = (int) [ 6000, 192000 ], "
|
||||||
"endianness = (int) LITTLE_ENDIAN, "
|
"endianness = (int) LITTLE_ENDIAN, "
|
||||||
"signed = (boolean) true;"
|
"signed = (boolean) true;"
|
||||||
"audio/x-raw-float, "
|
"audio/x-raw-float, "
|
||||||
"width = (int) 32, "
|
"width = (int) 32, "
|
||||||
"channels = (int) { 1, 2 }, "
|
"channels = (int) { 1, 2 }, "
|
||||||
"rate = (int) [ 8000, 96000 ], "
|
"rate = (int) [ 6000, 192000 ], " "endianness = (int) LITTLE_ENDIAN, ")
|
||||||
"endianness = (int) LITTLE_ENDIAN, " "buffer-frames = (int) 0")
|
|
||||||
);
|
);
|
||||||
|
|
||||||
static void gst_wavpack_dec_class_init (GstWavpackDecClass * klass);
|
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",
|
srccaps = gst_caps_new_simple ("audio/x-raw-float",
|
||||||
"rate", G_TYPE_INT, wavpackdec->samplerate,
|
"rate", G_TYPE_INT, wavpackdec->samplerate,
|
||||||
"channels", G_TYPE_INT, wavpackdec->channels,
|
"channels", G_TYPE_INT, wavpackdec->channels,
|
||||||
"width", G_TYPE_INT, 32,
|
"width", G_TYPE_INT, 32, "endianness", G_TYPE_INT, LITTLE_ENDIAN, NULL);
|
||||||
"endianness", G_TYPE_INT, LITTLE_ENDIAN,
|
|
||||||
"buffer-frames", G_TYPE_INT, 0, NULL);
|
|
||||||
}
|
}
|
||||||
gst_pad_set_caps (wavpackdec->srcpad, srccaps);
|
gst_pad_set_caps (wavpackdec->srcpad, srccaps);
|
||||||
gst_pad_use_fixed_caps (wavpackdec->srcpad);
|
gst_pad_use_fixed_caps (wavpackdec->srcpad);
|
||||||
|
|
|
@ -56,7 +56,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_STATIC_CAPS ("audio/x-wavpack, "
|
GST_STATIC_CAPS ("audio/x-wavpack, "
|
||||||
"width = (int) { 8, 16, 24 }, "
|
"width = (int) { 8, 16, 24 }, "
|
||||||
"channels = (int) { 1, 2 }, "
|
"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",
|
static GstStaticPadTemplate wvc_src_factory = GST_STATIC_PAD_TEMPLATE ("wvcsrc",
|
||||||
|
|
Loading…
Reference in a new issue