mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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()
This commit is contained in:
parent
3c6cdb7d7c
commit
e07e4a5cef
1 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue