mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
loading a plugin can return NULL
Original commit message from CVS: loading a plugin can return NULL
This commit is contained in:
parent
f4f9c7ea02
commit
0f0f00e2e8
1 changed files with 4 additions and 2 deletions
|
@ -634,12 +634,14 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
|
||||||
plugin->file_size, file_status.st_size);
|
plugin->file_size, file_status.st_size);
|
||||||
gst_registry_remove_plugin (gst_registry_get_default (), plugin);
|
gst_registry_remove_plugin (gst_registry_get_default (), plugin);
|
||||||
newplugin = gst_plugin_load_file (filename, NULL);
|
newplugin = gst_plugin_load_file (filename, NULL);
|
||||||
|
if (newplugin)
|
||||||
gst_object_unref (newplugin);
|
gst_object_unref (newplugin);
|
||||||
}
|
}
|
||||||
gst_object_unref (plugin);
|
gst_object_unref (plugin);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
newplugin = gst_plugin_load_file (filename, NULL);
|
newplugin = gst_plugin_load_file (filename, NULL);
|
||||||
|
if (newplugin)
|
||||||
gst_object_unref (newplugin);
|
gst_object_unref (newplugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue