core,data: Correct meaning for 'upnp_enabled' config
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 17 Dec 2010 15:25:49 +0000 (17:25 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 11 Jan 2011 17:18:49 +0000 (19:18 +0200)
'upnp_enabled' in the configuration now really means what it says:
Enable/Disable the UPnP devices. So its now set to 'true' by default and
if you set this to 'false', you can still stream media (currently only over
HTTP) from it. Of course, that means you need to know the URI of the item.

data/rygel-default.conf
data/rygel-maemo.conf
src/rygel/rygel-main.vala

index ff332ba..530e650 100644 (file)
@@ -5,8 +5,10 @@
 
 # General configuration options
 [general]
-# Set it to 'true' if Rygel should be run as part of user's session.
-enabled=false
+# Set it to 'false' if you want to only use the streaming part of Rygel and/or
+# don't want it to advertize itself on the UPnP network. If you want to
+# completely disable rygel, just don't run it then. :)
+enabled=true
 
 # Set it to 'false' if you want to disable transcoding support.
 enable-transcoding=true
index 3191b02..3dd4332 100644 (file)
@@ -5,8 +5,10 @@
 
 # General configuration options
 [general]
-# Set it to 'true' if Rygel should be run as part of user's session.
-enabled=false
+# Set it to 'false' if you want to only use the streaming part of Rygel and/or
+# don't want it to advertize itself on the UPnP network. If you want to
+# completely disable rygel, just don't run it then. :)
+enabled=true
 
 # Set it to 'false' if you want to disable transcoding support.
 enable-transcoding=true
index fe417e5..1753c2b 100644 (file)
@@ -184,7 +184,8 @@ public class Rygel.Main : Object {
         try {
             var device = factory.create (plugin);
 
-            device.available = plugin.active;
+            device.available = plugin.active &&
+                               this.config.get_upnp_enabled ();
 
             this.root_devices.add (device);