parse-launch: Add flag for placing elements in a bin instead of a pipeline
authorCarlos Rafael Giani <dv@pseudoterminal.org>
Fri, 11 Mar 2016 08:23:04 +0000 (09:23 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 24 Mar 2016 12:50:12 +0000 (14:50 +0200)
commitfdd5d22828e544ce1db9802f4ab1da0406edfed6
tree27d2915d758e426b9ae359c6953c4abc563aef61
parentbc78548cfe8e53b92d032fd2cf73d3a81ebcb351
parse-launch: Add flag for placing elements in a bin instead of a pipeline

By default, gst_parse_launch_full() creates a GstPipeline if there's more
than one toplevel element. Add a flag to let it use a GstBin instead.

Also fix the parser to let it use this flag for GST_TYPE_ELEMENT property
values, to avoid having GstPipelines inside other GstPipelines.

https://bugzilla.gnome.org/show_bug.cgi?id=763457
gst/gstparse.c
gst/gstparse.h
gst/parse/grammar.y