ladspa: simplify registry cache structure creation

Create and fill structure in one go.
This commit is contained in:
Stefan Sauer 2016-06-14 22:12:18 +02:00
parent 5e8a650130
commit 976cb234bc

View file

@ -236,8 +236,7 @@ ladspa_describe_plugin (const gchar * file_name, const gchar * entry_name,
continue;
}
ladspa_meta = gst_structure_new_empty ("ladspa");
gst_structure_set (ladspa_meta,
ladspa_meta = gst_structure_new ("ladspa",
"plugin-filename", G_TYPE_STRING, file_name,
"element-ix", G_TYPE_UINT, i,
"element-type-name", G_TYPE_STRING, type_name,