registry: Only scan plugin files that end with an extension

Not file that would for some reason end with 'so' or 'dll', etc...

https://bugzilla.gnome.org/show_bug.cgi?id=779175
This commit is contained in:
Thibault Saunier 2017-02-24 10:23:01 -03:00
parent 6326c764ee
commit 18a5cff70c

View file

@ -1265,7 +1265,7 @@ gst_registry_scan_path_level (GstRegistryScanContext * context,
g_free (filename);
continue;
}
if (!g_str_has_suffix (dirent, G_MODULE_SUFFIX)
if (!g_str_has_suffix (dirent, "." G_MODULE_SUFFIX)
#ifdef GST_EXTRA_MODULE_SUFFIX
&& !g_str_has_suffix (dirent, GST_EXTRA_MODULE_SUFFIX)
#endif