[rygel/rygel-0-14] core: Fix SinkProtocolInfo generation
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-14] core: Fix SinkProtocolInfo generation
- Date: Sat, 28 Apr 2012 18:58:31 +0000 (UTC)
commit 2600bea20c8626a7b4f08ce46d25204bb210127b
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]