projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02a3744
)
Add static version of removed gsT_element_factory_make_or_warn()
author
Ronald S. Bultje
<rbultje@ronald.bitfreak.net>
Sun, 2 Nov 2003 23:06:23 +0000
(23:06 +0000)
committer
Ronald S. Bultje
<rbultje@ronald.bitfreak.net>
Sun, 2 Nov 2003 23:06:23 +0000
(23:06 +0000)
Original commit message from CVS:
Add static version of removed gsT_element_factory_make_or_warn()
examples/seeking/seek.c
patch
|
blob
|
history
diff --git
a/examples/seeking/seek.c
b/examples/seeking/seek.c
index 24336cddee6d3d07b5cf5e8518d850544afa037c..2ad1ca7f8b96e80361ff851610c343da58535d4e 100644
(file)
--- 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)
{