mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 13:26:36 +00:00
gstregistrychunks: Directly set name on features
This commit is contained in:
parent
d4f84ad4e6
commit
ab8674d503
1 changed files with 2 additions and 2 deletions
|
@ -588,11 +588,11 @@ gst_registry_chunks_load_feature (GstRegistry * registry, gchar ** in,
|
|||
plugin_name);
|
||||
return FALSE;
|
||||
}
|
||||
if (G_UNLIKELY ((feature = g_object_new (type, NULL)) == NULL)) {
|
||||
if (G_UNLIKELY ((feature =
|
||||
g_object_new (type, "name", feature_name, NULL)) == NULL)) {
|
||||
GST_ERROR ("Can't create feature from type");
|
||||
return FALSE;
|
||||
}
|
||||
gst_plugin_feature_set_name (feature, feature_name);
|
||||
|
||||
if (G_UNLIKELY (!GST_IS_PLUGIN_FEATURE (feature))) {
|
||||
GST_ERROR ("typename : '%s' is not a plugin feature", type_name);
|
||||
|
|
Loading…
Reference in a new issue