diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2014-10-17 12:41:04 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2014-10-17 12:41:04 +0200 |
commit | bca04b06aa9ec7d425342b7700be4e15f8c86775 (patch) | |
tree | 59a82bb312dbbef6c4bcd00df56723acc541df13 | |
parent | 24428e93261070db49e5d3c11266b0d98e3303bd (diff) |
typefind: simplify registration code
Remove a useless assert (we just instantiated this type). Drop the free'ing of
the extension array. As we just created the instance this is always NULL.
-rw-r--r-- | gst/gsttypefind.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gst/gsttypefind.c b/gst/gsttypefind.c index ddcbfdaa51..e0ca96fd9d 100644 --- a/gst/gsttypefind.c +++ b/gst/gsttypefind.c @@ -72,15 +72,10 @@ gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank, factory = g_object_newv (GST_TYPE_TYPE_FIND_FACTORY, 0, NULL); GST_DEBUG_OBJECT (factory, "using new typefind factory for %s", name); - g_assert (GST_IS_TYPE_FIND_FACTORY (factory)); gst_plugin_feature_set_name (GST_PLUGIN_FEATURE_CAST (factory), name); gst_plugin_feature_set_rank (GST_PLUGIN_FEATURE_CAST (factory), rank); - if (factory->extensions) { - g_strfreev (factory->extensions); - factory->extensions = NULL; - } if (extensions) factory->extensions = g_strsplit (extensions, ",", -1); |