summaryrefslogtreecommitdiff
path: root/gst/gstregistry.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-10-20 21:43:58 -0400
committerWim Taymans <wim@metal.(none)>2009-10-20 21:43:58 -0400
commit50b9a3ecc364c21d1896df88b76c540a229861f5 (patch)
tree9d6539f7b70e434765b48074dc3d2d86a5d26fe1 /gst/gstregistry.c
parentd722d16155e6f7855bbf8d44f20eb515d9fb40db (diff)
registry: name is never NULL
When looking up a feature by name, we never call this internal function with NULL so we don't have to check for it.
Diffstat (limited to 'gst/gstregistry.c')
-rw-r--r--gst/gstregistry.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gst/gstregistry.c b/gst/gstregistry.c
index bbbc76464d..470628e74b 100644
--- a/gst/gstregistry.c
+++ b/gst/gstregistry.c
@@ -729,9 +729,6 @@ gst_registry_get_plugin_list (GstRegistry * registry)
static GstPluginFeature *
gst_registry_lookup_feature_locked (GstRegistry * registry, const char *name)
{
- if (G_UNLIKELY (name == NULL))
- return NULL;
-
return g_hash_table_lookup (registry->feature_hash, name);
}