summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-02 23:06:23 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-02 23:06:23 +0000
commite07e4a5ceff307f89b1761480e2279dd97f8483c (patch)
tree6633331f55efdb828ea1d83c952d537150b3e1df /examples
parent3c6cdb7d7c51afa573e5bf001a1f87b95dc1ed46 (diff)
Add static version of removed gsT_element_factory_make_or_warn()
Original commit message from CVS: Add static version of removed gsT_element_factory_make_or_warn()
Diffstat (limited to 'examples')
-rw-r--r--examples/seeking/seek.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/seeking/seek.c b/examples/seeking/seek.c
index 24336cdd..2ad1ca7f 100644
--- a/examples/seeking/seek.c
+++ b/examples/seeking/seek.c
@@ -30,6 +30,19 @@ typedef struct
GstElement *bin;
} dyn_link;
+static GstElement *
+gst_element_factory_make_or_warn (gchar *type, gchar *name)
+{
+ GstElement *element = gst_element_factory_make (type, name);
+
+ if (!element) {
+ g_warning ("Failed to create element %s of type %s",
+ name, type);
+ }
+
+ return element;
+}
+
static void
dynamic_link (GstPadTemplate *templ, GstPad *newpad, gpointer data)
{