audioresample: Add a proper deprecation comment and also drop G_PARAM_CONSTRUCT.
authorStefan Kost <ensonic@users.sf.net>
Wed, 4 Feb 2009 10:06:38 +0000 (12:06 +0200)
committerStefan Kost <ensonic@users.sf.net>
Wed, 4 Feb 2009 11:56:13 +0000 (13:56 +0200)
The comment will ensure that is is marked properly in the docs and the
GParamSpecflag was causing a duplicated initialisation of the same value.

gst/audioresample/gstaudioresample.c

index 97ed4cbce25f52f4102d185956c4a53fd9529894..ee4c757c388ef1c1d989c5452bccafbd9e7f0732 100644 (file)
@@ -181,10 +181,16 @@ gst_audio_resample_class_init (GstAudioResampleClass * klass)
   /* FIXME 0.11: Remove this property, it's just for compatibility
    * with old audioresample
    */
+  /**
+   * GstAudioResample:filter-length:
+   *
+   * Length of the resample filter
+   *
+   * Deprectated: Use #GstAudioResample:quality property instead
+   */
   g_object_class_install_property (gobject_class, PROP_FILTER_LENGTH,
       g_param_spec_int ("filter-length", "Filter length",
-          "DEPRECATED, DON'T USE THIS! " "Length of the resample filter", 0,
-          G_MAXINT, 64, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+          "Length of the resample filter", 0, G_MAXINT, 64, G_PARAM_READWRITE));
 
   GST_BASE_TRANSFORM_CLASS (klass)->start =
       GST_DEBUG_FUNCPTR (gst_audio_resample_start);