mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
plugin: add more detail to logging when not loading a plugin
Improve the log messages and add e.g the version number we checked.
This commit is contained in:
parent
ae2b0bacb6
commit
423bd42d44
1 changed files with 6 additions and 4 deletions
|
@ -480,16 +480,18 @@ gst_plugin_register_func (GstPlugin * plugin, const GstPluginDesc * desc,
|
||||||
{
|
{
|
||||||
if (!gst_plugin_check_version (desc->major_version, desc->minor_version)) {
|
if (!gst_plugin_check_version (desc->major_version, desc->minor_version)) {
|
||||||
if (GST_CAT_DEFAULT)
|
if (GST_CAT_DEFAULT)
|
||||||
GST_WARNING ("plugin \"%s\" has incompatible version, not loading",
|
GST_WARNING ("plugin \"%s\" has incompatible version "
|
||||||
GST_STR_NULL (plugin->filename));
|
"(plugin: %d.%d, gst: %d,%d), not loading",
|
||||||
|
GST_STR_NULL (plugin->filename), desc->major_version,
|
||||||
|
desc->minor_version, GST_VERSION_MAJOR, GST_VERSION_MINOR);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!desc->license || !desc->description || !desc->source ||
|
if (!desc->license || !desc->description || !desc->source ||
|
||||||
!desc->package || !desc->origin) {
|
!desc->package || !desc->origin) {
|
||||||
if (GST_CAT_DEFAULT)
|
if (GST_CAT_DEFAULT)
|
||||||
GST_WARNING ("plugin \"%s\" has incorrect GstPluginDesc, not loading",
|
GST_WARNING ("plugin \"%s\" has missing detail in GstPluginDesc, not "
|
||||||
GST_STR_NULL (plugin->filename));
|
"loading", GST_STR_NULL (plugin->filename));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue