mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-04 16:39:39 +00:00
plugin: warn if plugin name starts with a "
This can easily happen as side-effect of the plugin name in GST_PLUGIN_DEFINE no longer being a string in 0.11, but a name to G_STRINGIFY.
This commit is contained in:
parent
31eb27aa16
commit
dc837f8f60
1 changed files with 5 additions and 0 deletions
|
@ -786,6 +786,11 @@ gst_plugin_load_file (const gchar * filename, GError ** error)
|
|||
CHECK_PLUGIN_DESC_FIELD (plugin->orig_desc, package, filename);
|
||||
CHECK_PLUGIN_DESC_FIELD (plugin->orig_desc, origin, filename);
|
||||
|
||||
if (plugin->orig_desc->name != NULL && plugin->orig_desc->name[0] == '"') {
|
||||
g_warning ("Invalid plugin name '%s' - fix your GST_PLUGIN_DEFINE "
|
||||
"(remove quotes around plugin name)", plugin->orig_desc->name);
|
||||
}
|
||||
|
||||
if (plugin->orig_desc->release_datetime != NULL &&
|
||||
!check_release_datetime (plugin->orig_desc->release_datetime)) {
|
||||
GST_ERROR ("GstPluginDesc for '%s' has invalid datetime '%s'",
|
||||
|
|
Loading…
Reference in a new issue