diff options
author | Jens Georg <mail@jensge.org> | 2012-04-06 00:06:51 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2012-04-28 20:42:11 +0200 |
commit | 2600bea20c8626a7b4f08ce46d25204bb210127b (patch) | |
tree | a85407da052a7a1db05e80f208913103b7188fd5 | |
parent | f2ca37764802cefdaa99568571474114a0d3557b (diff) | |
download | rygel-2600bea20c8626a7b4f08ce46d25204bb210127b.tar.gz |
core: Fix SinkProtocolInfo generation
Previously it generated an incorrect protocol info on transport
protocol boundaries e.g. "internal:*:foo/bar:*http-get:*foo/bar:*"
-rw-r--r-- | 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 950021f6..cea868c0 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) { |