+2008-02-05 David Schleef <ds@schleef.org>
+
+ * gst/gst.c: Add a separate gst_deinitialized that prevents
+ gst_init() from being called after gst_deinit(). Fixes #509559
+
2008-02-05 Sebastian Dröge <slomo@circular-chaos.org>
* gst/gstbin.c: (gst_bin_get_type), (gst_bin_base_init),
#define GST_PLUGIN_SEPARATOR ","
static gboolean gst_initialized = FALSE;
+static gboolean gst_deinitialized = FALSE;
#ifndef GST_DISABLE_REGISTRY
static GList *plugin_paths = NULL; /* for delayed processing in post_init */
GST_INFO ("deinitializing GStreamer");
- if (!gst_initialized) {
+ if (gst_deinitialized) {
GST_DEBUG ("already deinitialized");
return;
}
#endif /* GST_DISABLE_INDEX */
g_type_class_unref (g_type_class_peek (gst_param_spec_fraction_get_type ()));
- gst_initialized = FALSE;
+ gst_deinitialized = TRUE;
GST_INFO ("deinitialized GStreamer");
}