gst/gst.c: Fix compilation with registry disabled as spotted by Saur.
authorWim Taymans <wim.taymans@gmail.com>
Tue, 20 Mar 2007 10:23:25 +0000 (10:23 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 20 Mar 2007 10:23:25 +0000 (10:23 +0000)
Original commit message from CVS:
* gst/gst.c:
Fix compilation with registry disabled as spotted by Saur.

ChangeLog
gst/gst.c

index 3519483..4422eef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-03-20  Wim Taymans  <wim@fluendo.com>
 
+       * gst/gst.c:
+       Fix compilation with registry disabled as spotted by Saur.
+
+2007-03-20  Wim Taymans  <wim@fluendo.com>
+
        Patch by: Olivier Crete <tester at tester dot ca>
 
        * gst/gstelement.c: (gst_element_sync_state_with_parent):
index a2c8d0a..8610a61 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -1191,9 +1191,11 @@ gst_deinit (void)
   g_slist_free (preload_plugins);
   preload_plugins = NULL;
 
+#ifndef GST_DISABLE_REGISTRY
   g_list_foreach (plugin_paths, (GFunc) g_free, NULL);
   g_list_free (plugin_paths);
   plugin_paths = NULL;
+#endif
 
   clock = gst_system_clock_obtain ();
   gst_object_unref (clock);