From c6ab453eed1049927005ec0e6600e7ceea884242 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 4 Feb 2009 12:06:38 +0200 Subject: [PATCH] audioresample: Add a proper deprecation comment and also drop G_PARAM_CONSTRUCT. 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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 97ed4cb..ee4c757 100644 --- a/gst/audioresample/gstaudioresample.c +++ b/gst/audioresample/gstaudioresample.c @@ -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); -- 2.7.4