make sure we have sane element details - this breaks some plugins, fix them :)
authorBenjamin Otte <otte@gnome.org>
Tue, 8 Jul 2003 16:17:33 +0000 (16:17 +0000)
committerBenjamin Otte <otte@gnome.org>
Tue, 8 Jul 2003 16:17:33 +0000 (16:17 +0000)
Original commit message from CVS:
make sure we have sane element details - this breaks some plugins, fix them :)

gst/gstelementfactory.c

index 798b147..3a3a4df 100644 (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 (type, 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);