Commit be872925 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

Use new core API to make registry re-scan the plugin whenever visualisations...

Use new core API to make registry re-scan the plugin whenever visualisations are added or removed (see #350477).

Original commit message from CVS:
* configure.ac:
* ext/libvisual/visual.c: (plugin_init):
Use new core API to make registry re-scan the plugin
whenever visualisations are added or removed (see #350477).
parent 74317892
2009-01-06 Tim-Philipp Müller <tim.muller at collabora co uk>
* configure.ac:
* ext/libvisual/visual.c: (plugin_init):
Use new core API to make registry re-scan the plugin
whenever visualisations are added or removed (see #350477).
2009-01-06 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: José Alburquerque <jaalburqu svn gnome org>
......@@ -490,6 +490,19 @@ AG_GST_CHECK_FEATURE(LIBVISUAL, [libvisual visualization library], libvisual, [
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
])
......
......@@ -875,6 +875,11 @@ plugin_init (GstPlugin * plugin)
GST_DEBUG_CATEGORY_INIT (libvisual_debug, "libvisual", 0,
"libvisual audio visualisations");
#ifdef LIBVISUAL_PLUGINSBASEDIR
gst_plugin_add_dependency_simple (plugin, "HOME/.libvisual/actor",
LIBVISUAL_PLUGINSBASEDIR "/actor", NULL, GST_PLUGIN_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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment