deinterlace: remove avoidable call to gst_object_set_name
authorRené Stadler <rene.stadler@collabora.co.uk>
Fri, 21 Oct 2011 20:32:38 +0000 (22:32 +0200)
committerRené Stadler <rene.stadler@collabora.co.uk>
Fri, 21 Oct 2011 20:32:38 +0000 (22:32 +0200)
gst/deinterlace/gstdeinterlace.c

index 4e1b488..8e505a8 100644 (file)
@@ -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));