From 792c181edc1eebb4b452c776fd176d6a4a6983b7 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sun, 31 Jan 2010 22:13:06 +0200 Subject: [PATCH] lv2: use plugin dependency registry api --- ext/lv2/gstlv2.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/lv2/gstlv2.c b/ext/lv2/gstlv2.c index d0f7977f78..cfc2f69b2e 100644 --- a/ext/lv2/gstlv2.c +++ b/ext/lv2/gstlv2.c @@ -45,6 +45,10 @@ #include "gstlv2.h" #include +#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;