[rygel] external: Remove redundant constants



commit 5e8c8f2c6aab7d2076de0ba4fd74ec9dac676fda
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sun Aug 15 16:29:39 2010 +0300

    external: Remove redundant constants

 .../external/rygel-external-plugin-factory.vala    |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-plugin-factory.vala b/src/plugins/external/rygel-external-plugin-factory.vala
index 170fa37..5912020 100644
--- a/src/plugins/external/rygel-external-plugin-factory.vala
+++ b/src/plugins/external/rygel-external-plugin-factory.vala
@@ -41,9 +41,6 @@ public class Rygel.External.PluginFactory {
     private const string DBUS_SERVICE = "org.freedesktop.DBus";
     private const string DBUS_OBJECT = "/org/freedesktop/DBus";
 
-    private static string OBJECT_IFACE = "org.gnome.UPnP.MediaObject2";
-    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";
 
@@ -127,8 +124,8 @@ public class Rygel.External.PluginFactory {
         HashTable<string,Value?> container_props;
 
         try {
-            object_props = yield props.get_all (OBJECT_IFACE);
-            container_props = yield props.get_all (CONTAINER_IFACE);
+            object_props = yield props.get_all (MediaObjectProxy.IFACE);
+            container_props = yield props.get_all (MediaContainerProxy.IFACE);
         } catch (DBus.Error err) {
             warning ("Failed to fetch properties of plugin %s: %s.",
                      service_name,



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