Original commit message from CVS:
fix spurious libxml warning
_gst_plugin_initialize (void)
{
GList *gst_plugin_default_paths = NULL;
+ struct stat stat_buf;
#ifndef GST_DISABLE_REGISTRY
xmlDocPtr doc = NULL;
xmlNodePtr root;
#endif /* PLUGINS_USE_BUILDDIR */
#ifndef GST_DISABLE_REGISTRY
- doc = xmlParseFile (GST_CONFIG_DIR"/reg.xml");
- g_assert (doc != NULL);
+ if (stat (GST_CONFIG_DIR"/reg.xml", &stat_buf) == 0)
+ doc = xmlParseFile (GST_CONFIG_DIR"/reg.xml");
+ else
+ doc = NULL;
if (!doc ||
!doc->xmlRootNode ||