summaryrefslogtreecommitdiff
authorStefan Kost <ensonic@users.sf.net>2010-01-31 20:13:06 (GMT)
committer Stefan Kost <ensonic@users.sf.net>2010-01-31 20:25:51 (GMT)
commit792c181edc1eebb4b452c776fd176d6a4a6983b7 (patch) (side-by-side diff)
treec0b20b0851d31eb96c0177470af118f9024994da
parent6f4bf4cf8f356839bb06466340e330e827b63a93 (diff)
downloadgst-plugins-bad-792c181edc1eebb4b452c776fd176d6a4a6983b7.zip
gst-plugins-bad-792c181edc1eebb4b452c776fd176d6a4a6983b7.tar.gz
lv2: use plugin dependency registry api
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ext/lv2/gstlv2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/lv2/gstlv2.c b/ext/lv2/gstlv2.c
index d0f7977..cfc2f69 100644
--- a/ext/lv2/gstlv2.c
+++ b/ext/lv2/gstlv2.c
@@ -45,6 +45,10 @@
#include "gstlv2.h"
#include <slv2/slv2.h>
+#define GST_LV2_DEFAULT_PATH \
+ "/usr/lib/lv2" G_SEARCHPATH_SEPARATOR_S \
+ "/usr/local/lib/lv2" G_SEARCHPATH_SEPARATOR_S \
+ LIBDIR "/lv2"
static void gst_lv2_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
@@ -881,6 +885,9 @@ plugin_init (GstPlugin * plugin)
/* initialize gst controller library */
gst_controller_init (NULL, NULL);
+ gst_plugin_add_dependency_simple (plugin,
+ "LV2_PATH", GST_LV2_DEFAULT_PATH, NULL, GST_PLUGIN_DEPENDENCY_FLAG_NONE);
+
parent_class = g_type_class_ref (GST_TYPE_SIGNAL_PROCESSOR);
gst_lv2_plugin = plugin;