summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-01-31 22:13:06 +0200
committerStefan Kost <ensonic@users.sf.net>2010-01-31 22:25:51 +0200
commit792c181edc1eebb4b452c776fd176d6a4a6983b7 (patch)
treec0b20b0851d31eb96c0177470af118f9024994da
parent6f4bf4cf8f356839bb06466340e330e827b63a93 (diff)
lv2: use plugin dependency registry api
-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 d0f7977f7..cfc2f69b2 100644
--- a/ext/lv2/gstlv2.c
+++ b/ext/lv2/gstlv2.c
@@ -42,12 +42,16 @@
#include <gst/controller/gstcontroller.h>
#include <gst/audio/multichannel.h>
#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);
static void gst_lv2_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec);
@@ -878,12 +882,15 @@ plugin_init (GstPlugin * plugin)
side_left_role = slv2_value_new_uri (world, NS_PG "sideLeftChannel");
side_right_role = slv2_value_new_uri (world, NS_PG "sideRightChannel");
/* 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;
descriptor_quark = g_quark_from_static_string ("slv2-plugin");
/* ensure GstAudioChannelPosition type is registered */