summaryrefslogtreecommitdiffstats
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
commitfc0447cc23bd6db356db6c6da8ce144c172feda5 (patch)
tree49995f6dfd623d7ae6fd8c46113c6ff74e980f60
parent4e3bf35246872d1c817090086d519e33fad68da6 (diff)
downloadgst-plugins-bad-fc0447cc23bd6db356db6c6da8ce144c172feda5.tar.gz
gst-plugins-bad-fc0447cc23bd6db356db6c6da8ce144c172feda5.tar.bz2
gst-plugins-bad-fc0447cc23bd6db356db6c6da8ce144c172feda5.zip
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()
-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)
{