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).
This commit is contained in:
Tim-Philipp Müller 2009-01-06 18:03:51 +00:00
parent 7431789249
commit be87292514
3 changed files with 25 additions and 0 deletions

View file

@ -1,3 +1,10 @@
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>

View file

@ -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
])

View file

@ -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,