diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-07-27 17:42:47 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-07-27 17:42:47 +0000 |
commit | d54ae9e9d7e542376d13516d90ce80ec5da546ec (patch) | |
tree | 17f5d49f7417da915c171d27918782861233dfec | |
parent | f8e224d9505442cab5a0174ac3be9c3d65ae29f1 (diff) |
fix template, only signed accepted
Original commit message from CVS:
fix template, only signed accepted
-rw-r--r-- | gst/level/filter.func | 1 | ||||
-rw-r--r-- | gst/level/gstlevel.c | 14 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gst/level/filter.func b/gst/level/filter.func index 107b02b5..fd82c038 100644 --- a/gst/level/filter.func +++ b/gst/level/filter.func @@ -29,6 +29,7 @@ gst_level_fast_16bit_chain (gint16 * in, guint num, gint channels, for (j = 0; j < num; j += channels) { + //g_print ("ch %d -> smp %d\n", j, in[j]); square = (double) (in[j] * in[j]); if (square > PSS) PSS = square; squaresum += square; diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c index dc51b705..c00b07b4 100644 --- a/gst/level/gstlevel.c +++ b/gst/level/gstlevel.c @@ -46,14 +46,24 @@ static GstStaticPadTemplate sink_template_factory = GST_STATIC_PAD_TEMPLATE ("level_sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_AUDIO_INT_PAD_TEMPLATE_CAPS) + GST_STATIC_CAPS ("audio/x-raw-int, " + "rate = (int) [ 1, MAX ], " + "channels = (int) 2, " + "endianness = (int) BYTE_ORDER, " + "width = (int) { 8, 16 }, " + "depth = (int) { 8, 16 }, " "signed = (boolean) true") ); static GstStaticPadTemplate src_template_factory = GST_STATIC_PAD_TEMPLATE ("level_src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_AUDIO_INT_PAD_TEMPLATE_CAPS) + GST_STATIC_CAPS ("audio/x-raw-int, " + "rate = (int) [ 1, MAX ], " + "channels = (int) 2, " + "endianness = (int) BYTE_ORDER, " + "width = (int) { 8, 16 }, " + "depth = (int) { 8, 16 }, " "signed = (boolean) true") ); /* Filter signals and args */ |