diff --git a/gst/frei0r/gstfrei0r.c b/gst/frei0r/gstfrei0r.c index 2254dc2ecf..6b8c0080a9 100644 --- a/gst/frei0r/gstfrei0r.c +++ b/gst/frei0r/gstfrei0r.c @@ -72,6 +72,12 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class, ftable->get_param_info (param_info, i); + if (!param_info->name) { + GST_ERROR ("Property %d of %s without a valid name", i, + g_type_name (G_TYPE_FROM_CLASS (gobject_class))); + continue; + } + prop_name = g_ascii_strdown (param_info->name, -1); g_strcanon (prop_name, G_CSET_A_2_Z G_CSET_a_2_z G_CSET_DIGITS "-+", '-'); /* satisfy glib2 (argname[0] must be [A-Za-z]) */