12e32d6038
Plugins other than playbin are untested. Rygel is normally run as a desktop service under a user account. It doesn't behave like a system daemon. Since running as a desktop service doesn't make sense for OpenWrt, I've included an init script and made a crude change to send the output to syslog. Signed-off-by: Andy Leiserson <andy@leiserson.org> Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@34528 3c298f89-4303-0410-b956-a3cf2f4a3e73
19 lines
836 B
Diff
19 lines
836 B
Diff
--- 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);
|
|
}
|