From 12e65bd17e9d11bac1cc0200210ed2d47cb12161 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 12 Jul 2002 13:40:53 +0000 Subject: parse to BIN dumbass Original commit message from CVS: parse to BIN dumbass --- gst-libs/gst/gconf/gconf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gst-libs/gst') diff --git a/gst-libs/gst/gconf/gconf.c b/gst-libs/gst/gconf/gconf.c index 60ad07c7..769e1fd7 100644 --- a/gst-libs/gst/gconf/gconf.c +++ b/gst-libs/gst/gconf/gconf.c @@ -93,9 +93,12 @@ gst_gconf_render_bin_from_description (const gchar *description) GstElement *bin = NULL; GstPad *pad = NULL; GError *error = NULL; + gchar *desc = NULL; - /* parse the pipeline */ - bin = GST_ELEMENT (gst_parse_launch (description, &error)); + /* parse the pipeline to a bin */ + desc = g_strdup_printf ("bin.( %s )", description); + bin = GST_ELEMENT (gst_parse_launch (desc, &error)); + g_free (desc); if (error) { g_print ("DEBUG: gstgconf: error parsing pipeline %s\n%s\n", -- cgit v1.2.1