[rygel] external: Ignore UPnP sources from Grilo



commit d2dca853464c316e1d5465dd9c182233e57d83bf
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Jun 24 17:47:19 2010 +0300

    external: Ignore UPnP sources from Grilo

 .../external/rygel-external-plugin-factory.vala    |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-plugin-factory.vala b/src/plugins/external/rygel-external-plugin-factory.vala
index 469a15a..34e2d7a 100644
--- a/src/plugins/external/rygel-external-plugin-factory.vala
+++ b/src/plugins/external/rygel-external-plugin-factory.vala
@@ -45,6 +45,7 @@ public class Rygel.ExternalPluginFactory {
     private static string CONTAINER_IFACE = "org.gnome.UPnP.MediaContainer2";
 
     private const string SERVICE_PREFIX = "org.gnome.UPnP.MediaServer2.";
+    private const string GRILO_UPNP_PREFIX = SERVICE_PREFIX + "grl_upnp";
 
     DBusObject          dbus_obj;
     DBus.Connection     connection;
@@ -112,6 +113,11 @@ public class Rygel.ExternalPluginFactory {
     }
 
     private async void load_plugin (string service_name) {
+        if (service_name.has_prefix (GRILO_UPNP_PREFIX)) {
+            // We don't entertain UPnP sources
+            return;
+        }
+
         // org.gnome.UPnP.MediaServer1.NAME => /org/gnome/UPnP/MediaServer1/NAME
         var root_object = "/" + service_name.replace (".", "/");
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]