mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
gstregistrychunks: We're certain plugin_name is an intern string.
The only place this method is called from creates the plugin_name argument with g_intern_string(). Shaves off 1% from registry loading.
This commit is contained in:
parent
9581e5887c
commit
6f7519704d
1 changed files with 1 additions and 2 deletions
|
@ -632,8 +632,7 @@ gst_registry_chunks_load_feature (GstRegistry * registry, gchar ** in,
|
|||
|
||||
feature->rank = pf->rank;
|
||||
|
||||
/* should already be the interned string, but better make sure */
|
||||
feature->plugin_name = g_intern_string (plugin_name);
|
||||
feature->plugin_name = plugin_name;
|
||||
|
||||
gst_registry_add_feature (registry, feature);
|
||||
GST_DEBUG ("Added feature %s", feature->name);
|
||||
|
|
Loading…
Reference in a new issue