Commit c3a8944c authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

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()
parent 6fc1aed0
......@@ -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)
{
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment