packages/multimedia/rygel/patches/010-identify-libs-by-suffix.patch
florian 12e32d6038 rygel: add package
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
2012-12-05 17:31:34 +00:00

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);
}