From 3a897e2f301dc5ca800bc5b2d7efc74d2cc1c4a3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 8 Apr 2003 21:59:44 +0000 Subject: rewritten pipeline parsing lands. Have fun breaking it. Original commit message from CVS: rewritten pipeline parsing lands. Have fun breaking it. regressions: - No support for filtered links. If anybody needs this, please contact me and I'll add it as fast as possible. improvements: - The pipeline building actually works as expected. - syntax compatible nearly everywhere but more flexible - better property parsing (you can now set enums by name or nick) - uses locked_state to allow for delayed pads - can connect video pipelines without the need for queues - allows properties on bins - does not return a bin, but an element. You may want to read docs/random/company/gstparse to learn how it works. --- gst/gstparse.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gst/gstparse.h') diff --git a/gst/gstparse.h b/gst/gstparse.h index a56f75c164..e647bfa70b 100644 --- a/gst/gstparse.h +++ b/gst/gstparse.h @@ -37,12 +37,13 @@ typedef enum GST_PARSE_ERROR_SYNTAX, GST_PARSE_ERROR_NO_SUCH_ELEMENT, GST_PARSE_ERROR_NO_SUCH_PROPERTY, - GST_PARSE_ERROR_LINK + GST_PARSE_ERROR_LINK, + GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY, } GstParseError; -GstBin* gst_parse_launch (const gchar *pipeline_description, GError **error); -GstBin* gst_parse_launchv (const gchar **argv, GError **error); +GstElement* gst_parse_launch (const gchar *pipeline_description, GError **error); +GstElement* gst_parse_launchv (const gchar **argv, GError **error); #else /* GST_DISABLE_PARSE */ -- cgit v1.2.1