mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
add assertion
Original commit message from CVS: add assertion
This commit is contained in:
parent
ab5863cba1
commit
11ff1a3b97
2 changed files with 24 additions and 10 deletions
|
@ -87,13 +87,20 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
||||||
factory = gst_elementfactory_new (_elements[i].name,
|
factory = gst_elementfactory_new (_elements[i].name,
|
||||||
(_elements[i].type) (),
|
(_elements[i].type) (),
|
||||||
_elements[i].details);
|
_elements[i].details);
|
||||||
if (factory != NULL) {
|
|
||||||
|
if (!factory)
|
||||||
|
{
|
||||||
|
g_warning ("gst_elementfactory_new failed for `%s'",
|
||||||
|
_elements[i].name);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
||||||
if (_elements[i].factoryinit) {
|
if (_elements[i].factoryinit) {
|
||||||
_elements[i].factoryinit (factory);
|
_elements[i].factoryinit (factory);
|
||||||
}
|
}
|
||||||
// g_print("added factory '%s'\n",_elements[i].name);
|
// g_print("added factory '%s'\n",_elements[i].name);
|
||||||
}
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,13 +87,20 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
||||||
factory = gst_elementfactory_new (_elements[i].name,
|
factory = gst_elementfactory_new (_elements[i].name,
|
||||||
(_elements[i].type) (),
|
(_elements[i].type) (),
|
||||||
_elements[i].details);
|
_elements[i].details);
|
||||||
if (factory != NULL) {
|
|
||||||
|
if (!factory)
|
||||||
|
{
|
||||||
|
g_warning ("gst_elementfactory_new failed for `%s'",
|
||||||
|
_elements[i].name);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
||||||
if (_elements[i].factoryinit) {
|
if (_elements[i].factoryinit) {
|
||||||
_elements[i].factoryinit (factory);
|
_elements[i].factoryinit (factory);
|
||||||
}
|
}
|
||||||
// g_print("added factory '%s'\n",_elements[i].name);
|
// g_print("added factory '%s'\n",_elements[i].name);
|
||||||
}
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue