projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8a650
)
ladspa: simplify registry cache structure creation
author
Stefan Sauer
<ensonic@users.sf.net>
Tue, 14 Jun 2016 20:12:18 +0000
(22:12 +0200)
committer
Stefan Sauer
<ensonic@users.sf.net>
Wed, 15 Jun 2016 10:14:30 +0000
(12:14 +0200)
Create and fill structure in one go.
ext/ladspa/gstladspa.c
patch
|
blob
|
history
diff --git
a/ext/ladspa/gstladspa.c
b/ext/ladspa/gstladspa.c
index
ec91463
..
624cbd8
100644
(file)
--- a/
ext/ladspa/gstladspa.c
+++ b/
ext/ladspa/gstladspa.c
@@
-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,