From 54be24375745a3c3e59c4b1a16ab191575c03fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Fri, 21 Oct 2011 21:57:17 +0200 Subject: [PATCH] playbasebin: remove avoidable call to gst_object_set_name --- gst/playback/gstplaybasebin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c index 847e12ff71..bee57f6462 100644 --- a/gst/playback/gstplaybasebin.c +++ b/gst/playback/gstplaybasebin.c @@ -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 */