make sure we have sane element details - this breaks some plugins, fix them :)

Original commit message from CVS:
make sure we have sane element details - this breaks some plugins, fix them :)
This commit is contained in:
Benjamin Otte 2003-07-08 16:17:33 +00:00
parent 10cdc0c90c
commit 76ea441abf

View file

@ -168,6 +168,13 @@ gst_element_factory_new (const gchar *name, GType type,
g_return_val_if_fail (name != NULL, NULL); g_return_val_if_fail (name != NULL, NULL);
g_return_val_if_fail (type, NULL); g_return_val_if_fail (type, NULL);
g_return_val_if_fail (details, NULL); g_return_val_if_fail (details, NULL);
g_return_val_if_fail (details->longname, NULL);
g_return_val_if_fail (details->klass, NULL);
g_return_val_if_fail (details->license, NULL);
g_return_val_if_fail (details->description, NULL);
g_return_val_if_fail (details->version, NULL);
g_return_val_if_fail (details->author, NULL);
g_return_val_if_fail (details->copyright, NULL);
factory = gst_element_factory_find (name); factory = gst_element_factory_find (name);