mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 09:08:14 +00:00
one bin is enough
Original commit message from CVS: one bin is enough
This commit is contained in:
parent
0b9e945b2e
commit
186ba5c337
1 changed files with 6 additions and 7 deletions
|
@ -108,10 +108,12 @@ gst_gconf_render_bin_from_description (const gchar *description)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* find pads and ghost them if necessary */
|
/* 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");
|
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");
|
gst_element_add_ghost_pad (bin, pad, "sink");
|
||||||
|
}
|
||||||
return bin;
|
return bin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,13 +123,10 @@ GstElement *
|
||||||
gst_gconf_render_bin_from_key (const gchar *key)
|
gst_gconf_render_bin_from_key (const gchar *key)
|
||||||
{
|
{
|
||||||
GstElement *bin;
|
GstElement *bin;
|
||||||
gchar *description;
|
gchar *value;
|
||||||
gchar *value = NULL;
|
|
||||||
|
|
||||||
value = gst_gconf_get_string (key);
|
value = gst_gconf_get_string (key);
|
||||||
description = g_strdup_printf ("bin.( %s )", value);
|
bin = gst_gconf_render_bin_from_description (value);
|
||||||
bin = gst_gconf_render_bin_from_description (description);
|
|
||||||
g_free (description);
|
|
||||||
return bin;
|
return bin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue