diff options
author | Dave Robillard <dave@drobilla.net> | 2009-06-25 17:25:52 -0400 |
---|---|---|
committer | Dave Robillard <dave@drobilla.net> | 2009-06-25 17:25:52 -0400 |
commit | 8f4785c4bbeeb8b25a50eacfcea7b915f7fb6802 (patch) | |
tree | a165ad6acf47e59b0d3df48cce36889cdd072d50 /ext | |
parent | 3a0774765760f816c3e748b45f705dc8c26fe92a (diff) | |
download | gst-plugins-bad-8f4785c4bbeeb8b25a50eacfcea7b915f7fb6802.tar.gz gst-plugins-bad-8f4785c4bbeeb8b25a50eacfcea7b915f7fb6802.tar.bz2 gst-plugins-bad-8f4785c4bbeeb8b25a50eacfcea7b915f7fb6802.zip |
Only allocate lv2:inPlaceBroken predicate once.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/lv2/gstlv2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/lv2/gstlv2.c b/ext/lv2/gstlv2.c index a9cdbd79..66eb2975 100644 --- a/ext/lv2/gstlv2.c +++ b/ext/lv2/gstlv2.c @@ -52,6 +52,7 @@ SLV2Value input_class; SLV2Value output_class; SLV2Value integer_prop; SLV2Value toggled_prop; +SLV2Value in_place_broken_pred; static GstSignalProcessorClass *parent_class; @@ -211,11 +212,8 @@ gst_lv2_base_init (gpointer g_class) g_free (details->author); g_free (details); - pred = slv2_value_new_uri (world, - "http://lv2plug.in/ns/lv2core#inPlaceBroken"); - if (!slv2_plugin_has_feature (lv2plugin, pred)) + if (!slv2_plugin_has_feature (lv2plugin, in_place_broken_pred)) GST_SIGNAL_PROCESSOR_CLASS_SET_CAN_PROCESS_IN_PLACE (klass); - slv2_value_free (pred); klass->plugin = lv2plugin; } @@ -574,6 +572,8 @@ plugin_init (GstPlugin * plugin) slv2_value_new_uri (world, "http://lv2plug.in/ns/lv2core#integer"); toggled_prop = slv2_value_new_uri (world, "http://lv2plug.in/ns/lv2core#toggled"); + in_place_broken_pred = slv2_value_new_uri (world, + "http://lv2plug.in/ns/lv2core#inPlaceBroken"); parent_class = g_type_class_ref (GST_TYPE_SIGNAL_PROCESSOR); |