From b5e21096863275fac989568973693f02db9c5b27 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Sun, 14 Apr 2002 11:48:51 +0000 Subject: [PATCH] cannot use _ in unit names for some reason. Original commit message from CVS: cannot use _ in unit names for some reason. --- libs/gst/control/unitconvert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/gst/control/unitconvert.c b/libs/gst/control/unitconvert.c index 18e853846f..0771805230 100644 --- a/libs/gst/control/unitconvert.c +++ b/libs/gst/control/unitconvert.c @@ -210,8 +210,8 @@ _gst_unitconv_initialize (void) 0, G_MAXFLOAT, 0, 0)); gst_unitconv_register_unit("frequency", FALSE, TRUE, - g_param_spec_float("rate_proportion", "rate proportion", "Proportion of the sample rate", - 0, 1, 0, 0)); + g_param_spec_float("rate-proportion", "rate proportion", "Proportion of the sample rate", + 0.0, 1.0, 0.0, 0)); gst_unitconv_register_unit("frequency", FALSE, FALSE, g_param_spec_string("twelve_tone_scale", "note", "Name of the note from the western twelve tone scale", @@ -245,7 +245,7 @@ _gst_unitconv_initialize (void) -G_MAXFLOAT, G_MAXFLOAT, 0, 0)); gst_unitconv_register_unit("magnitude", FALSE, FALSE, - g_param_spec_int("scalar_int", "scalar int", "Magnitude as an integer scalar", + g_param_spec_int("scalar-int", "scalar int", "Magnitude as an integer scalar", G_MININT, G_MAXINT, 0, 0)); gst_unitconv_register_unit("magnitude", FALSE, TRUE,