From: Sebastian Dröge Date: Wed, 7 Jan 2009 18:36:04 +0000 (+0000) Subject: Add plugin dependency for the GIO and GVfs modules. X-Git-Tag: 1.19.3~511^2~10095 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6b860f9a4dc0ae4ad8c0a839338c807683efca0;p=platform%2Fupstream%2Fgstreamer.git Add plugin dependency for the GIO and GVfs modules. Original commit message from CVS: * configure.ac: * ext/gio/gstgio.c: (plugin_init): Add plugin dependency for the GIO and GVfs modules. Fixes bug #566876. --- diff --git a/ChangeLog b/ChangeLog index dd0d500..6a22091 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,13 @@ 2009-01-07 Sebastian Dröge * configure.ac: + * ext/gio/gstgio.c: (plugin_init): + Add plugin dependency for the GIO and GVfs modules. + Fixes bug #566876. + +2009-01-07 Sebastian Dröge + + * configure.ac: * ext/gnomevfs/gstgnomevfs.c: (plugin_init): Add plugin dependency for the gnomevfs modules. Fixes bug #566875. diff --git a/configure.ac b/configure.ac index 33dcae8..78c3643 100644 --- a/configure.ac +++ b/configure.ac @@ -484,7 +484,15 @@ dnl *** libgio *** USE_GIO=$BUILD_EXPERIMENTAL translit(dnm, m, l) AM_CONDITIONAL(USE_GIO, true) AG_GST_CHECK_FEATURE(GIO, [GIO library], gio, [ - PKG_CHECK_MODULES(GIO, gio-2.0 >= 2.15.2, HAVE_GIO="yes", [ + PKG_CHECK_MODULES(GIO, gio-2.0 >= 2.15.2, [ + HAVE_GIO="yes" + GIO_MODULE_DIR="`$PKG_CONFIG --variable=giomoduledir gio-2.0`" + AC_DEFINE_UNQUOTED(GIO_MODULE_DIR, "$GIO_MODULE_DIR", + [The GIO modules directory.]) + GIO_LIBDIR="`$PKG_CONFIG --variable=libdir gio-2.0`" + AC_DEFINE_UNQUOTED(GIO_LIBDIR, "$GIO_LIBDIR", + [The GIO library directory.]) + ], [ HAVE_GIO="no" AC_MSG_RESULT(no) ]) diff --git a/ext/gio/gstgio.c b/ext/gio/gstgio.c index f71c263..eab316b 100644 --- a/ext/gio/gstgio.c +++ b/ext/gio/gstgio.c @@ -230,6 +230,11 @@ plugin_init (GstPlugin * plugin) GST_DEBUG_CATEGORY_INIT (gst_gio_debug, "gio", 0, "GIO elements"); + gst_plugin_add_dependency_simple (plugin, NULL, GIO_MODULE_DIR, NULL, + GST_PLUGIN_DEPENDENCY_FLAG_NONE); + gst_plugin_add_dependency_simple (plugin, "LD_LIBRARY_PATH", GIO_LIBDIR, + "gvfsd", GST_PLUGIN_DEPENDENCY_FLAG_NONE); + /* FIXME: Rank is MARGINAL for now, should be at least SECONDARY+1 in the future * to replace gnomevfssink/src. For testing purposes PRIMARY+1 one makes sense * so it gets autoplugged and preferred over filesrc/sink. */