[rygel] core: Fix SinkProtocolInfo generation



commit bea00e75895ee369a0fb86ae819cbe1d8b113697
Author: Jens Georg <mail jensge org>
Date:   Fri Apr 6 00:06:51 2012 +0200

    core: Fix SinkProtocolInfo generation
    
    Previously it generated an incorrect protocol info on transport
    protocol boundaries e.g. "internal:*:foo/bar:*http-get:*foo/bar:*"

 src/rygel/rygel-sink-connection-manager.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-sink-connection-manager.vala b/src/rygel/rygel-sink-connection-manager.vala
index 950021f..cea868c 100644
--- a/src/rygel/rygel-sink-connection-manager.vala
+++ b/src/rygel/rygel-sink-connection-manager.vala
@@ -35,8 +35,12 @@ internal class Rygel.SinkConnectionManager : Rygel.ConnectionManager {
 
         var plugin = this.root_device.resource_factory as MediaRendererPlugin;
         this.player = plugin.get_player ();
+        var protocols = this.player.get_protocols ();
 
-        foreach (var protocol in this.player.get_protocols ()) {
+        foreach (var protocol in protocols) {
+            if (protocols[0] != protocol) {
+                this.sink_protocol_info += ",";
+            }
             var mime_types = this.player.get_mime_types ();
 
             foreach (var mime_type in mime_types) {



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