gst-plugins-good: deinterlace: 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: dcd493279d691b0e34cb2288b394f82edc71929d
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=dcd493279d691b0e34cb2288b394f82edc71929d

Author: René Stadler <rene.stadler at collabora.co.uk>
Date:   Fri Oct 21 22:32:38 2011 +0200

deinterlace: remove avoidable call to gst_object_set_name

---

 gst/deinterlace/gstdeinterlace.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c
index 4e1b488..8e505a8 100644
--- a/gst/deinterlace/gstdeinterlace.c
+++ b/gst/deinterlace/gstdeinterlace.c
@@ -392,10 +392,9 @@ gst_deinterlace_set_method (GstDeinterlace * self, GstDeinterlaceMethods method)
     g_assert (method_type != G_TYPE_INVALID);
   }
 
-  self->method = g_object_new (method_type, NULL);
+  self->method = g_object_new (method_type, "name", "method", NULL);
   self->method_id = method;
 
-  gst_object_set_name (GST_OBJECT (self->method), "method");
   gst_object_set_parent (GST_OBJECT (self->method), GST_OBJECT (self));
   gst_child_proxy_child_added (GST_OBJECT (self), GST_OBJECT (self->method));
 



More information about the gstreamer-commits mailing list