mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
parse to BIN dumbass
Original commit message from CVS: parse to BIN dumbass
This commit is contained in:
parent
aa633274c9
commit
0577fa9b94
1 changed files with 5 additions and 2 deletions
|
@ -93,9 +93,12 @@ gst_gconf_render_bin_from_description (const gchar *description)
|
||||||
GstElement *bin = NULL;
|
GstElement *bin = NULL;
|
||||||
GstPad *pad = NULL;
|
GstPad *pad = NULL;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
gchar *desc = NULL;
|
||||||
|
|
||||||
/* parse the pipeline */
|
/* parse the pipeline to a bin */
|
||||||
bin = GST_ELEMENT (gst_parse_launch (description, &error));
|
desc = g_strdup_printf ("bin.( %s )", description);
|
||||||
|
bin = GST_ELEMENT (gst_parse_launch (desc, &error));
|
||||||
|
g_free (desc);
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
g_print ("DEBUG: gstgconf: error parsing pipeline %s\n%s\n",
|
g_print ("DEBUG: gstgconf: error parsing pipeline %s\n%s\n",
|
||||||
|
|
Loading…
Reference in a new issue