mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-28 19:00:42 +00:00
Fix obscure segfault I just got: perhaps due to running with libxml 1.8.11 but a worthwhile fix anyway.
Original commit message from CVS: Fix obscure segfault I just got: perhaps due to running with libxml 1.8.11 (prerelease version), but a worthwhile fix anyway.
This commit is contained in:
parent
c3a64ce1f6
commit
9416c3c7aa
|
@ -88,7 +88,10 @@ _gst_plugin_initialize (void)
|
||||||
|
|
||||||
doc = xmlParseFile (GST_CONFIG_DIR"/reg.xml");
|
doc = xmlParseFile (GST_CONFIG_DIR"/reg.xml");
|
||||||
|
|
||||||
if (!doc || strcmp (doc->xmlRootNode->name, "GST-PluginRegistry") ||
|
if (!doc ||
|
||||||
|
!doc->xmlRootNode ||
|
||||||
|
doc->xmlRootNode->name == 0 ||
|
||||||
|
strcmp (doc->xmlRootNode->name, "GST-PluginRegistry") ||
|
||||||
!plugin_times_older_than(get_time(GST_CONFIG_DIR"/reg.xml"))) {
|
!plugin_times_older_than(get_time(GST_CONFIG_DIR"/reg.xml"))) {
|
||||||
if (_gst_warn_old_registry)
|
if (_gst_warn_old_registry)
|
||||||
g_warning ("gstplugin: registry needs rebuild: run gstreamer-register\n");
|
g_warning ("gstplugin: registry needs rebuild: run gstreamer-register\n");
|
||||||
|
|
Loading…
Reference in a new issue