*
* Returns: the #cothread_state of the main (0th) thread
*/
-static cothread_state*
+cothread_state*
cothread_main(cothread_context *ctx)
{
GST_DEBUG (0,"returning %p, the 0th cothread\n",ctx->threads[0]);
/* whether or not to spew library load issues */
gboolean _gst_plugin_spew = FALSE;
+/* whether or not to warn if registry needs rebuild (gstreamer-register sets
+ * this to false.) */
+gboolean _gst_warn_old_registry = TRUE;
+
static gboolean plugin_times_older_than(time_t regtime);
static time_t get_time(const char * path);
if (!doc || strcmp (doc->root->name, "GST-PluginRegistry") ||
!plugin_times_older_than(get_time(GST_CONFIG_DIR"/reg.xml"))) {
- g_warning ("gstplugin: registry needs rebuild\n");
+ if (_gst_warn_old_registry)
+ g_warning ("gstplugin: registry needs rebuild\n");
gst_plugin_load_all ();
return;
}
#define GLOBAL_REGISTRY_FILE_TMP GLOBAL_REGISTRY_DIR"/.reg.xml.tmp"
extern gboolean _gst_plugin_spew;
+extern gboolean _gst_warn_old_registry;
static void error_perm() {
g_print("\n(%s)\n"
// Init gst
_gst_plugin_spew = TRUE;
+ _gst_warn_old_registry = FALSE;
gst_init(&argc,&argv);
// Check args