diff options
author | Steve Baker <steve@stevebaker.org> | 2002-07-28 15:06:06 +0000 |
---|---|---|
committer | Steve Baker <steve@stevebaker.org> | 2002-07-28 15:06:06 +0000 |
commit | 186ba5c337e42e8c87f1851615e1d0dd7c717904 (patch) | |
tree | 4426cd5477a766bfb488915fbd43ddec56ab2fb3 /gst-libs | |
parent | 0b9e945b2e110160b9da231b4cefed8c3c55e742 (diff) | |
download | gst-plugins-bad-186ba5c337e42e8c87f1851615e1d0dd7c717904.tar.gz gst-plugins-bad-186ba5c337e42e8c87f1851615e1d0dd7c717904.tar.bz2 gst-plugins-bad-186ba5c337e42e8c87f1851615e1d0dd7c717904.zip |
one bin is enough
Original commit message from CVS:
one bin is enough
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/gconf/gconf.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gst-libs/gst/gconf/gconf.c b/gst-libs/gst/gconf/gconf.c index 769e1fd7..09693cf7 100644 --- a/gst-libs/gst/gconf/gconf.c +++ b/gst-libs/gst/gconf/gconf.c @@ -108,10 +108,12 @@ gst_gconf_render_bin_from_description (const gchar *description) } /* find pads and ghost them if necessary */ - if ((pad = gst_bin_find_unconnected_pad (GST_BIN (bin), GST_PAD_SRC))) + if ((pad = gst_bin_find_unconnected_pad (GST_BIN (bin), GST_PAD_SRC))){ gst_element_add_ghost_pad (bin, pad, "src"); - if ((pad = gst_bin_find_unconnected_pad (GST_BIN (bin), GST_PAD_SINK))) + } + if ((pad = gst_bin_find_unconnected_pad (GST_BIN (bin), GST_PAD_SINK))){ gst_element_add_ghost_pad (bin, pad, "sink"); + } return bin; } @@ -121,13 +123,10 @@ GstElement * gst_gconf_render_bin_from_key (const gchar *key) { GstElement *bin; - gchar *description; - gchar *value = NULL; + gchar *value; value = gst_gconf_get_string (key); - description = g_strdup_printf ("bin.( %s )", value); - bin = gst_gconf_render_bin_from_description (description); - g_free (description); + bin = gst_gconf_render_bin_from_description (value); return bin; } |