Index: configure.ac
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/configure.ac,v
retrieving revision 1.756
diff -u -r1.756 configure.ac
--- configure.ac	2 Jan 2009 15:04:13 -0000	1.756
+++ configure.ac	5 Jan 2009 20:51:15 -0000
@@ -489,6 +489,19 @@
   if test $HAVE_LIBVISUAL = no
   then
     AG_GST_PKG_CHECK_MODULES(LIBVISUAL, libvisual = 0.2.0)
+    if test x$HAVE_LIBVISUAL == xyes; then
+      LIBVIS_PLUGINSDIR="`$PKG_CONFIG --variable=pluginsbasedir libvisual-0.2`"
+    fi
+  else
+    if test x$HAVE_LIBVISUAL == xyes; then
+      LIBVIS_PLUGINSDIR="`$PKG_CONFIG --variable=pluginsbasedir libvisual-0.4`"
+    fi
+  fi
+  AC_MSG_NOTICE([libvisual pluginsdir: $LIBVIS_PLUGINSDIR])
+  if test x$LIBVIS_PLUGINSDIR != x; then
+    AC_DEFINE_UNQUOTED(LIBVISUAL_PLUGINSBASEDIR,
+        "$LIBVIS_PLUGINSDIR",
+        [directory in which the detected libvisual's plugins are located])
   fi
 ])
 
Index: ext/libvisual/visual.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/ext/libvisual/visual.c,v
retrieving revision 1.37
diff -u -r1.37 visual.c
--- ext/libvisual/visual.c	29 Feb 2008 14:52:02 -0000	1.37
+++ ext/libvisual/visual.c	5 Jan 2009 20:51:15 -0000
@@ -875,6 +875,12 @@
   GST_DEBUG_CATEGORY_INIT (libvisual_debug, "libvisual", 0,
       "libvisual audio visualisations");
 
+#ifdef LIBVISUAL_PLUGINSBASEDIR
+  gst_plugin_add_external_dependency_simple (plugin, "HOME/.libvisual/actor",
+      LIBVISUAL_PLUGINSBASEDIR "/actor", NULL,
+      GST_PLUGIN_EXTERNAL_DEPENDENCY_FLAG_NONE);
+#endif
+
   visual_log_set_verboseness (VISUAL_LOG_VERBOSENESS_LOW);
   visual_log_set_info_handler (libvisual_log_handler, (void *) GST_LEVEL_INFO);
   visual_log_set_warning_handler (libvisual_log_handler,
