playbasebin: remove avoidable call to gst_object_set_name

This commit is contained in:
René Stadler 2011-10-21 21:57:17 +02:00
parent 133a0b1771
commit 54be243757

View file

@ -797,10 +797,9 @@ gen_preroll_element (GstPlayBaseBin * play_base_bin,
g_return_if_reached ();
/* create stream selector */
selector = g_object_new (GST_TYPE_STREAM_SELECTOR, NULL);
padname = gst_pad_get_name (pad);
name = g_strdup_printf ("selector_%s_%s", prename, padname);
gst_object_set_name (GST_OBJECT_CAST (selector), name);
selector = g_object_new (GST_TYPE_STREAM_SELECTOR, "name", name, NULL);
g_free (name);
/* create preroll queue */