ext/gnomevfs/gstgnomevfs.c: Return FALSE from plugin_init() when GnomeVFS can't be...
authorTim-Philipp Müller <tim@centricular.net>
Mon, 6 Feb 2006 19:09:26 +0000 (19:09 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 6 Feb 2006 19:09:26 +0000 (19:09 +0000)
Original commit message from CVS:
* ext/gnomevfs/gstgnomevfs.c: (plugin_init):
Return FALSE from plugin_init() when GnomeVFS can't
be initialised for some reason (#328423).

ChangeLog
common
ext/gnomevfs/gstgnomevfs.c

index 92a0c0b38f9d85c91d27e5e4e9d2bf6085002fd1..ae67ac8b4afbcff118b65cb4c5ecb3d0c0c4c24c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-02-06  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * ext/gnomevfs/gstgnomevfs.c: (plugin_init):
+         Return FALSE from plugin_init() when GnomeVFS can't
+         be initialised for some reason (#328423).
+
 2006-02-06  Julien MOUTTE  <julien@moutte.net>
 
        * ext/pango/gsttextoverlay.c: (gst_text_overlay_src_event): 
diff --git a/common b/common
index 79d67fe009b6120b82d51df860c78e8361f02aea..58567e5519f2d00a4592491db1a6e8302993279e 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 79d67fe009b6120b82d51df860c78e8361f02aea
+Subproject commit 58567e5519f2d00a4592491db1a6e8302993279e
index 6eb5a46a91e1b6e715529183de891d6958567d7b..b6b12599c0e3ab20d7b5c29e72044ffea404e5c1 100644 (file)
@@ -77,8 +77,12 @@ static gboolean
 plugin_init (GstPlugin * plugin)
 {
   /* gnome vfs engine init */
-  if (!gnome_vfs_initialized ())
-    gnome_vfs_init ();
+  if (!gnome_vfs_initialized ()) {
+    if (!gnome_vfs_init ()) {
+      GST_WARNING ("Failed to initialize GnomeVFS - not registering plugin!");
+      return FALSE;
+    }
+  }
 
   if (!gst_element_register (plugin, "gnomevfssrc", GST_RANK_SECONDARY,
           gst_gnome_vfs_src_get_type ()))