diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2002-07-12 13:40:53 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2002-07-12 13:40:53 +0000 |
commit | 41ff6133d65550971c21fa3dbb8481cb3cbaa211 (patch) | |
tree | ca89f30d1573ba0a8b791f9379e6811127625ff4 /gst-libs | |
parent | 2c782faca5cc0f5c526e1aa2378172a4f9304591 (diff) |
parse to BIN dumbass
Original commit message from CVS:
parse to BIN dumbass
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/gconf/gconf.c | 7 |
1 files changed, 5 insertions, 2 deletions
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", |