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