mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
ladspa: simplify registry cache structure creation
Create and fill structure in one go.
This commit is contained in:
parent
5e8a650130
commit
976cb234bc
1 changed files with 1 additions and 2 deletions
|
@ -236,8 +236,7 @@ ladspa_describe_plugin (const gchar * file_name, const gchar * entry_name,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
ladspa_meta = gst_structure_new_empty ("ladspa");
|
ladspa_meta = gst_structure_new ("ladspa",
|
||||||
gst_structure_set (ladspa_meta,
|
|
||||||
"plugin-filename", G_TYPE_STRING, file_name,
|
"plugin-filename", G_TYPE_STRING, file_name,
|
||||||
"element-ix", G_TYPE_UINT, i,
|
"element-ix", G_TYPE_UINT, i,
|
||||||
"element-type-name", G_TYPE_STRING, type_name,
|
"element-type-name", G_TYPE_STRING, type_name,
|
||||||
|
|
Loading…
Reference in a new issue