rygel r97 - in trunk: . src



Author: zeeshanak
Date: Tue Oct 28 21:00:14 2008
New Revision: 97
URL: http://svn.gnome.org/viewvc/rygel?rev=97&view=rev

Log:
Initialize the variables in the constructor.

Modified:
   trunk/ChangeLog
   trunk/src/gupnp-connection-manager.vala

Modified: trunk/src/gupnp-connection-manager.vala
==============================================================================
--- trunk/src/gupnp-connection-manager.vala	(original)
+++ trunk/src/gupnp-connection-manager.vala	Tue Oct 28 21:00:14 2008
@@ -26,11 +26,36 @@
 using GUPnP;
 
 public class GUPnP.ConnectionManager : Service {
-    private string source_protocol_info = "http-get:*:audio/mpeg:*,http-get:*:application/ogg:*,http-get:*:audio/x-vorbis:*,http-get:*:audio/x-ms-wma:*,http-get:*:audio/x-ms-asf:*,http-get:*:audio/x-flac:*,http-get:*:audio/x-mod:*,http-get:*:audio/x-wav:*,http-get:*:audio/x-ac3:*,http-get:*:audio/x-m4a:*,http-get:*:video/x-theora:*,http-get:*:video/x-dirac:*,http-get:*:video/x-wmv:*,http-get:*:video/x-wma:*,http-get:*:video/x-msvideo:*,http-get:*:video/x-3ivx:*,http-get:*:video/x-3ivx:*,http-get:*:video/x-matroska:*,http-get:*:video/mpeg:*,http-get:*:video/x-ms-asf:*,http-get:*:video/x-divx:*,http-get:*:video/x-ms-wmv:*";
-    private string sink_protocol_info   = "";
-    private string connection_ids       = "0";
+    private string source_protocol_info;
+    private string sink_protocol_info;
+    private string connection_ids;
 
     construct {
+        this.sink_protocol_info   = "";
+        this.connection_ids       = "0";
+        this.source_protocol_info = "http-get:*:audio/mpeg:*," +
+                                    "http-get:*:application/ogg:*," +
+                                    "http-get:*:audio/x-vorbis:*," +
+                                    "http-get:*:audio/x-ms-wma:*," +
+                                    "http-get:*:audio/x-ms-asf:*," +
+                                    "http-get:*:audio/x-flac:*," +
+                                    "http-get:*:audio/x-mod:*," +
+                                    "http-get:*:audio/x-wav:*," +
+                                    "http-get:*:audio/x-ac3:*," +
+                                    "http-get:*:audio/x-m4a:*," +
+                                    "http-get:*:video/x-theora:*," +
+                                    "http-get:*:video/x-dirac:*," +
+                                    "http-get:*:video/x-wmv:*," +
+                                    "http-get:*:video/x-wma:*," +
+                                    "http-get:*:video/x-msvideo:*," +
+                                    "http-get:*:video/x-3ivx:*," +
+                                    "http-get:*:video/x-3ivx:*," +
+                                    "http-get:*:video/x-matroska:*," +
+                                    "http-get:*:video/mpeg:*," +
+                                    "http-get:*:video/x-ms-asf:*," +
+                                    "http-get:*:video/x-divx:*," +
+                                    "http-get:*:video/x-ms-wmv:*";
+
         this.query_variable["SourceProtocolInfo"] +=
                         this.query_source_protocol_info_cb;
         this.query_variable["SinkProtocolInfo"] +=



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