mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
get the type number before showing it
Original commit message from CVS: get the type number before showing it
This commit is contained in:
parent
32dfe1ccb0
commit
84085a7943
1 changed files with 3 additions and 3 deletions
|
@ -190,13 +190,13 @@ gst_element_factory_create (GstElementFactory *factory,
|
|||
|
||||
g_return_val_if_fail (factory != NULL, NULL);
|
||||
|
||||
if (!gst_plugin_feature_ensure_loaded (GST_PLUGIN_FEATURE (factory)))
|
||||
return NULL;
|
||||
|
||||
GST_DEBUG (GST_CAT_ELEMENT_FACTORY,
|
||||
"creating element from factory \"%s\" (name \"%s\", type %d)",
|
||||
GST_OBJECT_NAME (factory), name, (gint) factory->type);
|
||||
|
||||
if (!gst_plugin_feature_ensure_loaded (GST_PLUGIN_FEATURE (factory)))
|
||||
return NULL;
|
||||
|
||||
if (factory->type == 0) {
|
||||
g_critical ("Factory for `%s' has no type",
|
||||
GST_PLUGIN_FEATURE_NAME (factory));
|
||||
|
|
Loading…
Reference in a new issue