summaryrefslogtreecommitdiffstats
path: root/examples/seeking
diff options
context:
space:
mode:
Diffstat (limited to 'examples/seeking')
-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)
{