From d845a5d1e82db7fa57814c5cabe89c84bdff972c Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Thu, 25 Dec 2008 12:02:00 +0000 Subject: [PATCH] Entertain Streamer.item_requested in DVBChannelGroup. svn path=/trunk/; revision=394 --- src/plugins/dvb/rygel-dvb-channel-group.vala | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/plugins/dvb/rygel-dvb-channel-group.vala b/src/plugins/dvb/rygel-dvb-channel-group.vala index 0c90c7a..7ec8952 100644 --- a/src/plugins/dvb/rygel-dvb-channel-group.vala +++ b/src/plugins/dvb/rygel-dvb-channel-group.vala @@ -62,6 +62,8 @@ public class Rygel.DVBChannelGroup : MediaContainer { this.streamer = streamer; this.fetch_channels (); + + this.streamer.item_requested += this.on_item_requested; } public uint add_channels (DIDLLiteWriter didl_writer, @@ -118,5 +120,14 @@ public class Rygel.DVBChannelGroup : MediaContainer { this.child_count = this.channels.size; } + + private void on_item_requested (Streamer streamer, + string item_id, + out MediaItem item) { + var channel = this.find_channel (item_id); + if (channel != null) { + item = channel; + } + } } -- 2.7.4