parse: Add GST_FLAG_NO_SINGLE_ELEMENT_BINS
authorBrendan Long <b.long@cablelabs.com>
Mon, 1 Jul 2013 20:04:46 +0000 (14:04 -0600)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 19 Aug 2013 09:30:15 +0000 (11:30 +0200)
commit48319d4be2365559d785a55c5569ff9a629e9575
tree0f20bcd19fd4117ba9d4921b57aa6a7385fb9986
parent9819e48b92b6667f8ea6f0b62f7b8da7b77309da
parse: Add GST_FLAG_NO_SINGLE_ELEMENT_BINS

This makes gst_parse_bin_from_description() return an element instead of
a bin if there's only one element. Also changed gstparse.c to use this,
so gst-launch won't create superfluous bins.

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