[gst-cvs] gstreamer: registry: name is never NULL
Wim Taymans
wtay at kemper.freedesktop.org
Wed Oct 21 06:37:29 PDT 2009
Module: gstreamer
Branch: master
Commit: 50b9a3ecc364c21d1896df88b76c540a229861f5
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=50b9a3ecc364c21d1896df88b76c540a229861f5
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Tue Oct 20 21:43:58 2009 -0400
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.
---
gst/gstregistry.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/gst/gstregistry.c b/gst/gstregistry.c
index bbbc764..470628e 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);
}
More information about the Gstreamer-commits
mailing list