From 76ea441abf5ff579f027d18cbdf3834658c8fe9f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 8 Jul 2003 16:17:33 +0000 Subject: [PATCH] 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 :) --- gst/gstelementfactory.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index 798b147..3a3a4df 100644 --- a/gst/gstelementfactory.c +++ b/gst/gstelementfactory.c @@ -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); -- 2.7.4