mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-31 20:48:56 +00:00
tools/gst-launch.c: If the top-level of the parse is a normal bin, it doesn't do the right logic to run as a top-leve...
Original commit message from CVS: * tools/gst-launch.c: (main): If the top-level of the parse is a normal bin, it doesn't do the right logic to run as a top-level element, so place it inside a pipeline.
This commit is contained in:
parent
5a3d69e5be
commit
2444ba9601
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-07-26 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* tools/gst-launch.c: (main):
|
||||
If the top-level of the parse is a normal bin, it doesn't do the
|
||||
right logic to run as a top-level element, so place it inside a
|
||||
pipeline.
|
||||
|
||||
2006-07-25 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* plugins/elements/gstfilesrc.c: (gst_file_src_set_property):
|
||||
|
|
|
@ -637,7 +637,10 @@ main (int argc, char *argv[])
|
|||
GstState state, pending;
|
||||
GstStateChangeReturn ret;
|
||||
|
||||
if (!GST_IS_BIN (pipeline)) {
|
||||
/* If the top-level object is not a bin, or is just a normal bin that
|
||||
* doesn't do top-level type logic, place it in a pipeline. Assumes any
|
||||
* other top-level bin is a special kind (like playbin) */
|
||||
if (!GST_IS_BIN (pipeline) || (G_OBJECT_TYPE (pipeline) == GST_TYPE_BIN)) {
|
||||
GstElement *real_pipeline = gst_element_factory_make ("pipeline", NULL);
|
||||
|
||||
if (real_pipeline == NULL) {
|
||||
|
|
Loading…
Reference in a new issue