[rygel] core: List DLNA formats first



commit 351a7a3a84e329c3c8e5ed1cd098677098b91585
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Aug 6 19:53:13 2010 +0300

    core: List DLNA formats first
    
    List DLNA formats first in the list of supported formats to satisfy DLNA
    requirement 7.3.28.2.

 src/rygel/rygel-http-server.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/rygel/rygel-http-server.vala b/src/rygel/rygel-http-server.vala
index 363bc3b..8cc0beb 100644
--- a/src/rygel/rygel-http-server.vala
+++ b/src/rygel/rygel-http-server.vala
@@ -163,13 +163,13 @@ internal class Rygel.HTTPServer : Rygel.TranscodeManager, Rygel.StateMachine {
     }
 
     internal override string get_protocol_info () {
-        var protocol_info = this.get_protocol () + ":*:*:*";
-        var base_info = base.get_protocol_info ();
+        var protocol_info = base.get_protocol_info ();
 
-        if (base_info != "")
-            protocol_info += "," + base_info;
+        if (protocol_info != "") {
+            protocol_info += ",";
+        }
 
-        return protocol_info;
+        return protocol_info += this.get_protocol () + ":*:*:*";
     }
 
     private void on_request_completed (StateMachine machine) {



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