From: Steve Baker Date: Sun, 14 Apr 2002 11:48:51 +0000 (+0000) Subject: cannot use _ in unit names for some reason. X-Git-Tag: BRANCH-RELEASE-0_4_0-ROOT~271 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5e21096863275fac989568973693f02db9c5b27;p=platform%2Fupstream%2Fgstreamer.git cannot use _ in unit names for some reason. Original commit message from CVS: cannot use _ in unit names for some reason. --- diff --git a/libs/gst/control/unitconvert.c b/libs/gst/control/unitconvert.c index 18e8538..0771805 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,