mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
fix spurious libxml warning
Original commit message from CVS: fix spurious libxml warning
This commit is contained in:
parent
a8a2afd14d
commit
a90f908bbf
1 changed files with 5 additions and 2 deletions
|
@ -62,6 +62,7 @@ void
|
||||||
_gst_plugin_initialize (void)
|
_gst_plugin_initialize (void)
|
||||||
{
|
{
|
||||||
GList *gst_plugin_default_paths = NULL;
|
GList *gst_plugin_default_paths = NULL;
|
||||||
|
struct stat stat_buf;
|
||||||
#ifndef GST_DISABLE_REGISTRY
|
#ifndef GST_DISABLE_REGISTRY
|
||||||
xmlDocPtr doc = NULL;
|
xmlDocPtr doc = NULL;
|
||||||
xmlNodePtr root;
|
xmlNodePtr root;
|
||||||
|
@ -89,8 +90,10 @@ _gst_plugin_initialize (void)
|
||||||
#endif /* PLUGINS_USE_BUILDDIR */
|
#endif /* PLUGINS_USE_BUILDDIR */
|
||||||
|
|
||||||
#ifndef GST_DISABLE_REGISTRY
|
#ifndef GST_DISABLE_REGISTRY
|
||||||
doc = xmlParseFile (GST_CONFIG_DIR"/reg.xml");
|
if (stat (GST_CONFIG_DIR"/reg.xml", &stat_buf) == 0)
|
||||||
g_assert (doc != NULL);
|
doc = xmlParseFile (GST_CONFIG_DIR"/reg.xml");
|
||||||
|
else
|
||||||
|
doc = NULL;
|
||||||
|
|
||||||
if (!doc ||
|
if (!doc ||
|
||||||
!doc->xmlRootNode ||
|
!doc->xmlRootNode ||
|
||||||
|
|
Loading…
Reference in a new issue