ext/wavpack/: Wavpack supports samplerates from 6-192kHz, fix pad template remove...
authorgcocatre@gmail.com <gcocatre@gmail.com>
Fri, 16 Dec 2005 09:59:21 +0000 (09:59 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 16 Dec 2005 09:59:21 +0000 (09:59 +0000)
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.

ext/wavpack/gstwavpackdec.c
ext/wavpack/gstwavpackparse.c

index de7e87f..1664b20 100644 (file)
@@ -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);
index 726c884..5621d4e 100644 (file)
@@ -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",