summaryrefslogtreecommitdiffstats
path: root/multimedia/rygel/patches/010-identify-libs-by-suffix.patch
blob: 50df4fc1777c43c22797186f1be38201ffcfca01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/src/rygel/rygel-plugin-loader.vala
+++ b/src/rygel/rygel-plugin-loader.vala
@@ -126,13 +126,12 @@
         foreach (var info in infos) {
             var file = dir.get_child (info.get_name ());
             FileType file_type = info.get_file_type ();
-            string content_type = info.get_content_type ();
-            string mime = ContentType.get_mime_type (content_type);
+            string file_name = info.get_name ();
 
             if (file_type == FileType.DIRECTORY) {
                 // Recurse into directories
                 this.load_modules_from_dir.begin (file);
-            } else if (mime == "application/x-sharedlib") {
+            } else if (file_name.has_suffix (Module.SUFFIX)) {
                 // Seems like we found a module
                 this.load_module_from_file (file);
             }