registry: Only scan plugin files that end with an extension
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 24 Feb 2017 13:23:01 +0000 (10:23 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 24 Feb 2017 19:16:39 +0000 (16:16 -0300)
Not file that would for some reason end with 'so' or 'dll', etc...

https://bugzilla.gnome.org/show_bug.cgi?id=779175

gst/gstregistry.c

index cc094e3..7ea7784 100644 (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