gst-plugins-good: equalizer: remove avoidable call to gst_object_set_name
René Stadler
cymacs at kemper.freedesktop.org
Fri Oct 21 14:22:01 PDT 2011
Module: gst-plugins-good
Branch: master
Commit: 6082f27d483357d7392b952ebf201a9e6db6706d
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=6082f27d483357d7392b952ebf201a9e6db6706d
Author: René Stadler <rene.stadler at collabora.co.uk>
Date: Fri Oct 21 22:33:34 2011 +0200
equalizer: remove avoidable call to gst_object_set_name
---
gst/equalizer/gstiirequalizer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/equalizer/gstiirequalizer.c b/gst/equalizer/gstiirequalizer.c
index 0b76748..8034582 100644
--- a/gst/equalizer/gstiirequalizer.c
+++ b/gst/equalizer/gstiirequalizer.c
@@ -658,10 +658,10 @@ gst_iir_equalizer_compute_frequencies (GstIirEqualizer * equ, guint new_count)
/* add new bands */
equ->bands = g_realloc (equ->bands, sizeof (GstObject *) * new_count);
for (i = old_count; i < new_count; i++) {
- equ->bands[i] = g_object_new (GST_TYPE_IIR_EQUALIZER_BAND, NULL);
/* otherwise they get names like 'iirequalizerband5' */
sprintf (name, "band%u", i);
- gst_object_set_name (GST_OBJECT (equ->bands[i]), name);
+ equ->bands[i] = g_object_new (GST_TYPE_IIR_EQUALIZER_BAND,
+ "name", name, NULL);
GST_DEBUG ("adding band[%d]=%p", i, equ->bands[i]);
gst_object_set_parent (GST_OBJECT (equ->bands[i]), GST_OBJECT (equ));
More information about the gstreamer-commits
mailing list