From: René Stadler Date: Fri, 21 Oct 2011 20:32:38 +0000 (+0200) Subject: deinterlace: remove avoidable call to gst_object_set_name X-Git-Tag: 1.19.3~509^2~7136^2~297 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dcd493279d691b0e34cb2288b394f82edc71929d;p=platform%2Fupstream%2Fgstreamer.git deinterlace: remove avoidable call to gst_object_set_name --- 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));