projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d722d16
)
registry: name is never NULL
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 21 Oct 2009 01:43:58 +0000
(21:43 -0400)
committer
Wim Taymans
<wim@metal.(none)>
Wed, 21 Oct 2009 01:43:58 +0000
(21:43 -0400)
When looking up a feature by name, we never call this internal
function with NULL so we don't have to check for it.
gst/gstregistry.c
patch
|
blob
|
history
diff --git
a/gst/gstregistry.c
b/gst/gstregistry.c
index
bbbc764
..
470628e
100644
(file)
--- 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);
}